From: Michael Scherer <[email protected]>

Avoid a uneeded fork, and avoid repeating the filename
---
 playbooks/death_to_postfix.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/playbooks/death_to_postfix.yml b/playbooks/death_to_postfix.yml
index 46a1f33..8e0c2a8 100644
--- a/playbooks/death_to_postfix.yml
+++ b/playbooks/death_to_postfix.yml
@@ -15,7 +15,7 @@
         command:  pkill -u root master 
removes=/var/spool/postfix/pid/master.pid
      
       - name: Clean up old pid lock file.
-        command: rm /var/spool/postfix/pid/master.pid 
removes=/var/spool/postfix/pid/master.pid
+        file: name=/var/spool/postfix/pid/master.pid state=absent
      
       - name: Try to start postfix cleanly
         service:  name=postfix state=started
-- 
1.8.3.1
_______________________________________________
infrastructure mailing list
[email protected]
http://lists.fedoraproject.org/admin/lists/[email protected]

Reply via email to