Skip to content

Commit

Permalink
Use status field of ansible_selinux to detect whether SELinux is enab…
Browse files Browse the repository at this point in the history
…led (issue #166)
  • Loading branch information
Trevor Robinson committed Aug 18, 2016
1 parent 8a2d12b commit d87b2f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/install-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@

- name: allow nginx to connect to consul (selinux)
seboolean: name=httpd_can_network_connect state=yes persistent=yes
when: consul_is_ui and consul_install_nginx_config and ansible_selinux
when: consul_is_ui and consul_install_nginx_config and ansible_selinux.status == "enabled"

0 comments on commit d87b2f2

Please sign in to comment.