Fix sundries for idempotency

This commit is contained in:
Kevin Fenzi 2015-01-31 23:49:31 +00:00
parent 96dba57660
commit ea0a8e0358

View file

@ -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