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
|
||||
mode: '0644'
|
||||
state: touch
|
||||
register: ping_log_created
|
||||
when: not ping_log_check.stat.exists
|
||||
tags: copr_ping
|
||||
|
||||
|
@ -56,7 +57,7 @@
|
|||
|
||||
- name: restorecon ping_log
|
||||
shell: restorecon -irv "{{ ping_log }}"
|
||||
when: semanage_run.changed
|
||||
when: semanage_run.changed or ping_log_created.changed
|
||||
tags: copr_ping
|
||||
|
||||
- name: rebuild the copr-ping package periodically
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue