summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruvok cheetah2023-08-10 18:07:59 +0200
committeruvok cheetah2023-08-10 18:07:59 +0200
commitafe0d6f44485ffae36960ad1eeb9b4a847d62aff (patch)
tree1611dc98ebd3629af8ee198c09a1d7d89ff77f54
parentaf016bafdde8862de845f31c96481803b795ff1d (diff)
Move variables in separate file
-rw-r--r--group_vars/internal2
-rw-r--r--group_vars/routing1
-rw-r--r--group_vars/server1
-rw-r--r--group_vars/vms2
-rw-r--r--hosts.yml11
5 files changed, 7 insertions, 10 deletions
diff --git a/group_vars/internal b/group_vars/internal
new file mode 100644
index 0000000..80ad979
--- /dev/null
+++ b/group_vars/internal
@@ -0,0 +1,2 @@
+ansible_become_pass: "{{ mypass }}"
+ansible_user: ansible
diff --git a/group_vars/routing b/group_vars/routing
new file mode 100644
index 0000000..a03e94e
--- /dev/null
+++ b/group_vars/routing
@@ -0,0 +1 @@
+ansible_user: root
diff --git a/group_vars/server b/group_vars/server
new file mode 100644
index 0000000..a03e94e
--- /dev/null
+++ b/group_vars/server
@@ -0,0 +1 @@
+ansible_user: root
diff --git a/group_vars/vms b/group_vars/vms
new file mode 100644
index 0000000..80ad979
--- /dev/null
+++ b/group_vars/vms
@@ -0,0 +1,2 @@
+ansible_become_pass: "{{ mypass }}"
+ansible_user: ansible
diff --git a/hosts.yml b/hosts.yml
index fde224e..6555858 100644
--- a/hosts.yml
+++ b/hosts.yml
@@ -12,15 +12,10 @@ all:
srv-samba.lan: {}
srv-unifi2.lan: {}
srv-supysonic.lan: {}
- vars:
- ansible_become_pass: "{{ mypass }}"
- ansible_user: ansible
server:
hosts:
hetzner: {}
netcup: {}
- vars:
- ansible_user: root
vms:
hosts:
pihole.lan: {}
@@ -32,13 +27,9 @@ all:
srv-samba.lan: {}
srv-unifi2.lan: {}
srv-supysonic.lan: {}
- vars:
- ansible_become_pass: "{{ mypass }}"
- ansible_user: ansible
+# srv-birde.lan: {}
routing:
hosts:
hetzner: {}
netcup: {}
srv-birde.lan: {}
- vars:
- ansible_user: root