X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Froles%2Fdehydrated%2Ftasks%2Fmain.yml;h=3405ff37245b6acfdaac15093bcac97f724cc8c2;hb=9d43bd9e52701c477ba57d6a0275a6b259a183f8;hp=87ebe8f05bd0eb9cde2931e4028f9e37f54cf48f;hpb=a25c68ad3932c2ca7f1612be4c95286f6bce23b8;p=ansible.git diff --git a/playbooks/debian/roles/dehydrated/tasks/main.yml b/playbooks/debian/roles/dehydrated/tasks/main.yml index 87ebe8f..3405ff3 100644 --- a/playbooks/debian/roles/dehydrated/tasks/main.yml +++ b/playbooks/debian/roles/dehydrated/tasks/main.yml @@ -5,30 +5,30 @@ register: dehydrated changed_when: not dehydrated.stat.exists -- name: Install git - local_action: - module: apt - autoclean: yes - autoremove: yes - install_recommends: no - name: git - purge: yes - state: latest - update_cache: yes - when: not dehydrated.stat.exists +- block: + - name: Install git + become: true + local_action: + module: apt + autoclean: yes + autoremove: yes + install_recommends: no + name: git + purge: yes + state: latest + update_cache: yes -- name: Prepare to clone dehydrated - local_action: - module: file - path: /usr/local/src/LetsEncrypt - state: directory - when: not dehydrated.stat.exists + - name: Prepare to clone dehydrated + local_action: + module: file + path: /usr/local/src/LetsEncrypt + state: directory -- name: Clone dehydrated - local_action: - module: git - repo: https://github.com/lukas2511/dehydrated.git - dest: /usr/local/src/LetsEncrypt/dehydrated + - name: Clone dehydrated + local_action: + module: git + repo: https://github.com/lukas2511/dehydrated.git + dest: /usr/local/src/LetsEncrypt/dehydrated when: not dehydrated.stat.exists - name: Prepare the server to syncronize dehydrated