Fix this to be idempotent
This commit is contained in:
parent
bb84dd36de
commit
6f947cd9ec
1 changed files with 7 additions and 0 deletions
|
@ -6,6 +6,12 @@
|
|||
- python-requests
|
||||
- fedmsg
|
||||
|
||||
- name: check log file
|
||||
command: stat /var/log/koji-cert-reminder.log
|
||||
register: logstat
|
||||
always_run: yes
|
||||
changed_when: "1 != 1"
|
||||
|
||||
- name: Ensure we can write to our own log file
|
||||
file: >
|
||||
dest=/var/log/koji-cert-reminder.log
|
||||
|
@ -13,6 +19,7 @@
|
|||
mode=0644
|
||||
owner=fedmsg
|
||||
group=fedmsg
|
||||
when: logstat.rc == 1
|
||||
|
||||
- name: Copy the scripts over
|
||||
copy: >
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue