cpor-be: copr-ping: run restorecon even when log is created
This commit is contained in:
parent
2cda9ec28d
commit
cec8ae4147
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
||||||
group: nagios
|
group: nagios
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
state: touch
|
state: touch
|
||||||
|
register: ping_log_created
|
||||||
when: not ping_log_check.stat.exists
|
when: not ping_log_check.stat.exists
|
||||||
tags: copr_ping
|
tags: copr_ping
|
||||||
|
|
||||||
|
@ -56,7 +57,7 @@
|
||||||
|
|
||||||
- name: restorecon ping_log
|
- name: restorecon ping_log
|
||||||
shell: restorecon -irv "{{ ping_log }}"
|
shell: restorecon -irv "{{ ping_log }}"
|
||||||
when: semanage_run.changed
|
when: semanage_run.changed or ping_log_created.changed
|
||||||
tags: copr_ping
|
tags: copr_ping
|
||||||
|
|
||||||
- name: rebuild the copr-ping package periodically
|
- name: rebuild the copr-ping package periodically
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue