Skip to content

Commit d11423e

Browse files
author
VilleS1
committed
fix bare variables
1 parent 8af3007 commit d11423e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/redhat.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515
- name: install selinux package
1616
package: name="policycoreutils" state=present
17-
when: pxe_bootstrap_selinux
17+
when: pxe_bootstrap_selinux|bool
1818

1919
- name: ipxe_selinux_context
2020
command: restorecon -Rv /var/lib/tftpboot/
21-
when: pxe_bootstrap_selinux
21+
when: pxe_bootstrap_selinux|bool
2222

2323
- name: copy in the pxe_bootscript
2424
copy: src=boot.py dest=/var/www/cgi-bin/boot.py owner=apache group=apache mode="0550"
@@ -34,7 +34,7 @@
3434

3535
- name: download PXE upgrade.img file
3636
get_url: url="{{ repo_location}}/images/pxeboot/upgrade.img" dest=/var/www/html/ks/upgrade.img force=yes owner=apache group=apache mode="0550"
37-
when: pxe_bootstrap_upgrade_img
37+
when: pxe_bootstrap_upgrade_img|bool
3838

3939
- name: create_dhcpd_config_dir
4040
file: path=/etc/dhcp/dhcpd.d state=directory owner=root group=root mode="0755"

0 commit comments

Comments
 (0)