diff options
author | uvok cheetah | 2023-08-10 18:07:59 +0200 |
---|---|---|
committer | uvok cheetah | 2023-08-10 18:07:59 +0200 |
commit | afe0d6f44485ffae36960ad1eeb9b4a847d62aff (patch) | |
tree | 1611dc98ebd3629af8ee198c09a1d7d89ff77f54 | |
parent | af016bafdde8862de845f31c96481803b795ff1d (diff) |
Move variables in separate file
-rw-r--r-- | group_vars/internal | 2 | ||||
-rw-r--r-- | group_vars/routing | 1 | ||||
-rw-r--r-- | group_vars/server | 1 | ||||
-rw-r--r-- | group_vars/vms | 2 | ||||
-rw-r--r-- | hosts.yml | 11 |
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 @@ -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 |