X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Froles%2Finstall-dehydrated%2Ftasks%2Fmain.yml;h=d43ef8a946d8cd26dd619124dd3fc0eee10140b5;hb=ee4e33b1419e3af81023e9ae17d0726b79c6c90f;hp=7672bc86c05be347305e4db09d28f6bca6a21d3a;hpb=32266b707ada32788d608fa6fbe7f1de623f2755;p=ansible.git diff --git a/playbooks/debian/roles/install-dehydrated/tasks/main.yml b/playbooks/debian/roles/install-dehydrated/tasks/main.yml index 7672bc8..d43ef8a 100644 --- a/playbooks/debian/roles/install-dehydrated/tasks/main.yml +++ b/playbooks/debian/roles/install-dehydrated/tasks/main.yml @@ -14,21 +14,21 @@ 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 + dest: /usr/local/src/LetsEncrypt/dehydrated + when: not dehydrated.stat.exists - name: Prepare the server to syncronize dehydrated become: true