mirror of
https://gitea.0xace.cc/ansible-galaxy/cacert.git
synced 2024-11-25 07:16:40 +00:00
rename host_groups to append_groups
This commit is contained in:
parent
c06334e393
commit
92dcddb528
@ -24,7 +24,7 @@ Inventory example:
|
|||||||
|
|
||||||
cacert_group_certs:
|
cacert_group_certs:
|
||||||
- name: mygroupcert
|
- name: mygroupcert
|
||||||
host_groups:
|
append_groups:
|
||||||
- consul
|
- consul
|
||||||
- patroni
|
- patroni
|
||||||
hosts:
|
hosts:
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
- name: Generate subject_alt_ips
|
- name: Generate subject_alt_ips
|
||||||
set_fact:
|
set_fact:
|
||||||
client_subject_alt_ips: "{{ groups[group_item] | map('extract', hostvars, ['ansible_host']) | map('regex_replace', '^', 'IP:') | list }}"
|
client_subject_alt_ips: "{{ groups[group_item] | map('extract', hostvars, ['ansible_host']) | map('regex_replace', '^', 'IP:') | list }}"
|
||||||
loop: "{{ item.host_groups }}"
|
loop: "{{ item.append_groups }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: group_item
|
loop_var: group_item
|
||||||
when:
|
when:
|
||||||
@ -16,7 +16,7 @@
|
|||||||
- name: Generate subject_alt_names
|
- name: Generate subject_alt_names
|
||||||
set_fact:
|
set_fact:
|
||||||
client_subject_alt_names: "{{ groups[group_item] | map('extract', hostvars, ['inventory_hostname']) | map('regex_replace', '^', 'DNS:') | list }}"
|
client_subject_alt_names: "{{ groups[group_item] | map('extract', hostvars, ['inventory_hostname']) | map('regex_replace', '^', 'DNS:') | list }}"
|
||||||
loop: "{{ item.host_groups }}"
|
loop: "{{ item.append_groups }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: group_item
|
loop_var: group_item
|
||||||
when:
|
when:
|
||||||
|
Loading…
Reference in New Issue
Block a user