buildmaster: try running selinux context change async

This commit is contained in:
Martin Krizek 2017-02-22 11:25:53 +00:00
parent 1072e361d6
commit cbcac7a4cd

View file

@ -52,6 +52,9 @@
- name: make sure the selinux fcontext is restored
command: restorecon -R "{{ buildmaster_home }}"
when: deployment_type in ['dev', 'stg', 'prod', 'qa-stg']
async: 300
poll: 0
register: selinux_context
- name: allow httpd tcp connections with selinux
seboolean: name=httpd_can_network_connect state=true persistent=yes
@ -92,3 +95,9 @@
- name: put robots.txt at web root of external hostname
when: robots_path is defined
template: src=robots.txt.j2 dest={{ robots_path }}/robots.txt owner=apache group=apache mode=0644
- name: check on selinux context change
async_status: jid={{ selinux_context.ansible_job_id }}
register: job_result
until: job_result.finished
retries: 30