X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Froles%2Finstall-dehydrated%2Ftasks%2Fmain.yml;fp=playbooks%2Fdebian%2Froles%2Finstall-dehydrated%2Ftasks%2Fmain.yml;h=0000000000000000000000000000000000000000;hb=49d5c6480b024b830d2cdb42fa9f70254f7bdb2a;hp=d43ef8a946d8cd26dd619124dd3fc0eee10140b5;hpb=7cca98e8fe8715ac2afc68067913768d4d7c010b;p=ansible.git diff --git a/playbooks/debian/roles/install-dehydrated/tasks/main.yml b/playbooks/debian/roles/install-dehydrated/tasks/main.yml deleted file mode 100644 index d43ef8a..0000000 --- a/playbooks/debian/roles/install-dehydrated/tasks/main.yml +++ /dev/null @@ -1,54 +0,0 @@ -- name: Test if dehydrated is already cloned - local_action: - module: stat - path: /usr/local/src/LetsEncrypt/dehydrated/.git/config - register: dehydrated - -- 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 - -- name: Prepare to clone dehydrated - local_action: - module: file - path: /usr/local/src/LetsEncrypt - state: directory - when: not dehydrated.stat.exists - -- 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 - become: true - file: - path: /usr/local/src/LetsEncrypt - state: directory - owner: root - group: staff - mode: "ug+rwx,o+rx,g+s" - -- name: Syncronize dehydrated to the server - synchronize: - src: /usr/local/src/LetsEncrypt/dehydrated - dest: /usr/local/src/LetsEncrypt - -- name: Configure dehydrated weekly run - become: true - copy: - src: dehydrated - dest: /etc/cron.weekly - owner: root - group: root - mode: '0700'