mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-25 01:10:22 +00:00
Ansible RKE2: loop group servers on template configs
This commit is contained in:
parent
9b130ebc96
commit
012fa317bc
2 changed files with 6 additions and 6 deletions
|
@ -3,8 +3,8 @@ token: {{ hostvars['server1']['token'] }}
|
|||
server: https://{{ hostvars['server1']['ansible_host'] }}:9345
|
||||
tls-san:
|
||||
- {{ vip }}
|
||||
- {{ hostvars['server1']['ansible_host'] }}
|
||||
- {{ hostvars['server2']['ansible_host'] }}
|
||||
- {{ hostvars['server3']['ansible_host'] }}
|
||||
{% for host in groups['servers'] %}
|
||||
- {{ hostvars[host]['ansible_host'] }}
|
||||
{% endfor %}
|
||||
node-label:
|
||||
- server=true
|
|
@ -1,9 +1,9 @@
|
|||
write-kubeconfig-mode: "0644"
|
||||
tls-san:
|
||||
- {{ vip }}
|
||||
- {{ hostvars['server1']['ansible_host'] }}
|
||||
- {{ hostvars['server2']['ansible_host'] }}
|
||||
- {{ hostvars['server3']['ansible_host'] }}
|
||||
{% for host in groups['servers'] %}
|
||||
- {{ hostvars[host]['ansible_host'] }}
|
||||
{% endfor %}
|
||||
node-label:
|
||||
- server=true
|
||||
disable:
|
||||
|
|
Loading…
Reference in a new issue