Fix sundries for idempotency
This commit is contained in:
parent
96dba57660
commit
ea0a8e0358
1 changed files with 13 additions and 0 deletions
|
@ -67,5 +67,18 @@
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
|
- name: check the selinux context freemedia
|
||||||
|
command: matchpathcon /srv/web/freemedia
|
||||||
|
register: freemediacontext
|
||||||
|
always_run: yes
|
||||||
|
changed_when: "1 != 1"
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- selinux
|
||||||
|
|
||||||
- name: /srv/web/freemedia file contexts
|
- name: /srv/web/freemedia file contexts
|
||||||
command: semanage fcontext -a -t httpd_sys_content_t "/srv/web/freemedia(/.*)?"
|
command: semanage fcontext -a -t httpd_sys_content_t "/srv/web/freemedia(/.*)?"
|
||||||
|
when: freemediacontext.stdout.find('httpd_sys_content_t') == -1
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- selinux
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue