]> git.phdru.name Git - ansible.git/commitdiff
Fix(install-dehydrated): Fix condition
authorOleg Broytman <phd@phdru.name>
Sat, 27 Jul 2019 15:31:53 +0000 (18:31 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 27 Jul 2019 16:07:40 +0000 (19:07 +0300)
playbooks/debian/roles/install-dehydrated/tasks/main.yml

index 7672bc86c05be347305e4db09d28f6bca6a21d3a..2169c5da5a9a34f9e2fc6d77ec53b88c6cef173c 100644 (file)
     purge: yes
     state: latest
     update_cache: yes
-  when: dehydrated.stat.exists
+  when: not dehydrated.stat.exists
 
 - name: Prepare to clone dehydrated
   local_action:
     module: file
     path: /usr/local/src/LetsEncrypt
     state: directory
-  when: dehydrated.stat.exists
+  when: not dehydrated.stat.exists
 
 - name: Clone dehydrated
   local_action:
     module: git
     repo: https://github.com/lukas2511/dehydrated.git
     dest: /usr/local/src/LetsEncrypt
-  when: dehydrated.stat.exists
+  when: not dehydrated.stat.exists
 
 - name: Prepare the server to syncronize dehydrated
   become: true