Skip to content

Commit

Permalink
[icingaweb2] build roles when admin is configured
Browse files Browse the repository at this point in the history
  • Loading branch information
mkayontour committed Mar 8, 2024
1 parent 629d319 commit 2f1fdcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/icingaweb2/tasks/manage_icingaweb_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 2f1fdcd

Please sign in to comment.