buildmaster: try running selinux context change async
This commit is contained in:
parent
1072e361d6
commit
cbcac7a4cd
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue