]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/roles/install-dehydrated/tasks/main.yml
Fix(install-dehydrated): Fix condition
[ansible.git] / 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