Fix some boolean checks.

This commit is contained in:
Andrea Dell'Amico 2019-11-02 17:06:32 +01:00
parent 68de4756c5
commit 23921aa74a
1 changed files with 3 additions and 3 deletions

View File

@ -1,15 +1,15 @@
---
- name: Install the epel repository
yum: name={{ centos_epel_repo_url }} state={{ centos_pkg_state }}
when: centos_install_epel
when: centos_install_epel | bool
tags: [ 'centos', 'repo' ]
- name: Install the SCL release to access the latest versions of some software
yum: name=centos-release-scl state=present
when: centos_install_release_scl
when: centos_install_release_scl | bool
tags: [ 'centos', 'scl', 'repo' ]
- name: Install the elrepo repository
yum: name={{ rh_elrepo_repo_url }} state=present
when: rh_install_elrepo
when: rh_install_elrepo | bool
tags: [ 'centos', 'rhel', 'repo' ]