Fix this to be idempotent

This commit is contained in:
Kevin Fenzi 2014-05-27 18:06:47 +00:00
parent bb84dd36de
commit 6f947cd9ec

View file

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