aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-01-04 22:02:32 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-01-04 22:02:32 +0100
commit5b5e036bec39837c1cd170a05d5b1f9c133f8775 (patch)
tree95da99c762437bbb65685b355584c0df9f42d60e
parentfd755f6d2bbe7eac06a50559c93bc9368b7e4554 (diff)
downloadansible-memzero-5b5e036bec39837c1cd170a05d5b1f9c133f8775.tar.gz
ansible-memzero-5b5e036bec39837c1cd170a05d5b1f9c133f8775.zip
move variables from playbook to inventory
-rw-r--r--inventory.ini5
-rw-r--r--memzero.yml4
2 files changed, 5 insertions, 4 deletions
diff --git a/inventory.ini b/inventory.ini
index a7ae016..89bd0fd 100644
--- a/inventory.ini
+++ b/inventory.ini
@@ -1 +1,6 @@
memzero.de
+
+[all:vars]
+USER = johannst
+DATA_ROOT = /home/johannst/pods
+NETWORK = podnet
diff --git a/memzero.yml b/memzero.yml
index b6a6f73..4ae7fa7 100644
--- a/memzero.yml
+++ b/memzero.yml
@@ -1,9 +1,5 @@
- name: Server setup
hosts: all
- vars:
- USER: johannst
- DATA_ROOT: /home/johannst/pods
- NETWORK: podnet
pre_tasks:
- name: Setup podman network