Skip to content

Commit

Permalink
update boolean when conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
mkayontour committed Mar 12, 2024
1 parent 6c5b4c6 commit 9dc0e5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions roles/monitoring_plugins/tasks/install_on_RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
icinga_repo_testing: false
icinga_repo_snapshot: false
when: icinga_monitoring_plugins_epel
when: icinga_monitoring_plugins_epel|bool == true

- name: Yum - install requested packages
become: yes
Expand Down
4 changes: 2 additions & 2 deletions roles/repos/tasks/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
yum:
name: epel-release
state: present
when: icinga_repo_epel
when: icinga_repo_epel|bool == true

- name: Yum - add SCL repositories
yum:
name: centos-release-scl
state: present
when:
- icinga_repo_scl
- icinga_repo_scl|bool == true
- ansible_distribution == "CentOS"
- ansible_distribution_major_version < "8"

0 comments on commit 9dc0e5d

Please sign in to comment.