mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-30 08:50:55 +08:00
taskotron-stg: set selinux context after the dir actually exists
This commit is contained in:
@@ -34,14 +34,6 @@
|
||||
with_items:
|
||||
- python-novaclient
|
||||
|
||||
- name: set the selinux fcontext type for the buildmaster_home to var_lib_t
|
||||
command: semanage fcontext -a -t var_lib_t "{{ buildmaster_home }}(/.*)?"
|
||||
when: deployment_type in ['dev', 'stg', 'qa-stg']
|
||||
|
||||
- name: make sure the selinux fcontext is restored
|
||||
command: restorecon -R "{{ buildmaster_home }}"
|
||||
when: deployment_type in ['dev', 'stg', 'qa-stg']
|
||||
|
||||
- name: add the buildmaster user
|
||||
user: name={{ buildmaster_user }} home={{ buildmaster_home }}
|
||||
|
||||
@@ -53,6 +45,14 @@
|
||||
file: path="{{ buildmaster_home }}" state=directory owner=buildmaster group=buildmaster mode=0775
|
||||
when: deployment_type in ['dev', 'stg']
|
||||
|
||||
- name: set the selinux fcontext type for the buildmaster_home to var_lib_t
|
||||
command: semanage fcontext -a -t var_lib_t "{{ buildmaster_home }}(/.*)?"
|
||||
when: deployment_type in ['dev', 'stg', 'qa-stg']
|
||||
|
||||
- name: make sure the selinux fcontext is restored
|
||||
command: restorecon -R "{{ buildmaster_home }}"
|
||||
when: deployment_type in ['dev', 'stg', 'qa-stg']
|
||||
|
||||
- name: allow httpd tcp connections with selinux
|
||||
seboolean: name=httpd_can_network_connect state=true persistent=yes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user