mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 12:07:34 +08:00
Fix sundries for idempotency
This commit is contained in:
@@ -67,5 +67,18 @@
|
||||
tags:
|
||||
- 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
|
||||
command: semanage fcontext -a -t httpd_sys_content_t "/srv/web/freemedia(/.*)?"
|
||||
when: freemediacontext.stdout.find('httpd_sys_content_t') == -1
|
||||
tags:
|
||||
- config
|
||||
- selinux
|
||||
|
||||
Reference in New Issue
Block a user