ipa/client: Deal better with unset IPA variables

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2021-02-16 15:37:12 +01:00
parent 109865606a
commit c394c808e6

View file

@ -12,9 +12,10 @@
changed_when: false changed_when: false
loop: >- loop: >-
{{ {{
ipa_server_user_groups (ipa_server_user_groups | default([]))
+ (ipa_server_all_groups_hosts_dict | list | product(['sysadmin-main']) | list) + (ipa_server_all_groups_hosts_dict | default({}) | list | product(['sysadmin-main']) | list)
}} }}
when: ipa_server_user_groups is defined or ipa_server_all_groups_hosts_dict is defined
## Rules specific to hosts, host groups ## Rules specific to hosts, host groups