From 92dcddb528ed447f5706c6582b49127f421021c5 Mon Sep 17 00:00:00 2001 From: ace Date: Fri, 9 Sep 2022 13:10:33 +0300 Subject: [PATCH] rename host_groups to append_groups --- README.md | 2 +- tasks/group_certs.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5ac8b5a..4689ce2 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Inventory example: cacert_group_certs: - name: mygroupcert - host_groups: + append_groups: - consul - patroni hosts: diff --git a/tasks/group_certs.yaml b/tasks/group_certs.yaml index 5a06ca9..df721f8 100644 --- a/tasks/group_certs.yaml +++ b/tasks/group_certs.yaml @@ -4,7 +4,7 @@ - name: Generate subject_alt_ips set_fact: 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_var: group_item when: @@ -16,7 +16,7 @@ - name: Generate subject_alt_names set_fact: 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_var: group_item when: