From 2f1fdcd402a5d06e9793be3e70f0c92cd66db80d Mon Sep 17 00:00:00 2001 From: Thilo W Date: Fri, 8 Mar 2024 10:37:39 +0100 Subject: [PATCH] [icingaweb2] build roles when admin is configured --- roles/icingaweb2/tasks/manage_icingaweb_config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/icingaweb2/tasks/manage_icingaweb_config.yml b/roles/icingaweb2/tasks/manage_icingaweb_config.yml index 851812a7..517afbf1 100644 --- a/roles/icingaweb2/tasks/manage_icingaweb_config.yml +++ b/roles/icingaweb2/tasks/manage_icingaweb_config.yml @@ -91,7 +91,7 @@ when: icingaweb2_resources is defined - name: Assemble roles.ini - when: (icingaweb2_admin_username is defined and icingaweb2_admin_password is defined) and icingaweb2_roles is defined + when: icingaweb2_admin_username is defined and icingaweb2_admin_password is defined block: - name: Build variable ansible.builtin.set_fact: @@ -108,7 +108,7 @@ dest: "{{ icingaweb2_fragments_path }}/roles/roles_01" owner: root group: "{{ icingaweb2_group }}" - when: icingaweb2_admin_password is defined + when: icingaweb2_admin_username is defined and icingaweb2_admin_password is defined - name: Build variable ansible.builtin.set_fact: