copr-be: copr-ping: selinux issue #1
This commit is contained in:
parent
5a17f06a45
commit
0df8c3564b
1 changed files with 8 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
- set_fact:
|
- set_fact:
|
||||||
ping_user: copr-ping
|
ping_user: copr-ping
|
||||||
ping_scriptdir: /home/copr-ping
|
ping_scriptdir: /home/copr-ping
|
||||||
ping_log: /var/log/copr-ping.log
|
ping_log: /var/tmp/copr-ping.log
|
||||||
ping_script: copr-ping-script.sh
|
ping_script: copr-ping-script.sh
|
||||||
tags: copr_ping
|
tags: copr_ping
|
||||||
|
|
||||||
|
@ -46,6 +46,13 @@
|
||||||
mode: 0750
|
mode: 0750
|
||||||
tags: copr_ping
|
tags: copr_ping
|
||||||
|
|
||||||
|
- name: selinux - allow nrpe_t to read ping_log
|
||||||
|
sefcontext:
|
||||||
|
target: "{{ ping_log }}"
|
||||||
|
setype: nrpe_var_run_t
|
||||||
|
state: present
|
||||||
|
tags: copr_ping
|
||||||
|
|
||||||
- name: rebuild the copr-ping package periodically
|
- name: rebuild the copr-ping package periodically
|
||||||
ansible.builtin.cron:
|
ansible.builtin.cron:
|
||||||
name: build the ping package
|
name: build the ping package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue