cpor-be: copr-ping: run restorecon even when log is created

This commit is contained in:
Pavel Raiskup 2021-08-10 10:42:46 +02:00
parent 2cda9ec28d
commit cec8ae4147

View file

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