openqa: use seboolean module instead of re-inventing it

This commit is contained in:
Adam Williamson 2015-11-13 09:36:36 -08:00
parent 8f8686d43d
commit 9ee4338308

View file

@ -140,16 +140,9 @@
- openqa-websockets
- openqa-gru
- name: Check if SELinux policy is set
shell: "getsebool httpd_can_network_connect"
register: getsebool
always_run: true
changed_when: "1 != 1"
# This is using a big hammer until #1277312 is resolved
- name: Allow Apache to connect to openQA
command: "setsebool -P httpd_can_network_connect on"
when: getsebool.stdout.find('--> on') == -1
seboolean: name=httpd_can_network_connect state=yes persistent=yes
- name: Wait for openQA to be fully started
pause: seconds=5