1 - name: Test if dehydrated is already cloned
4 path: /usr/local/src/LetsEncrypt/dehydrated/.git/config
6 changed_when: not dehydrated.stat.exists
15 install_recommends: no
20 - name: Prepare to clone dehydrated
23 path: /usr/local/src/LetsEncrypt
26 - name: Clone dehydrated
29 repo: https://github.com/lukas2511/dehydrated.git
30 dest: /usr/local/src/LetsEncrypt/dehydrated
31 when: not dehydrated.stat.exists
33 - name: Prepare the server to synchronize dehydrated
36 path: /usr/local/src/LetsEncrypt
40 mode: "ug+rwx,o+rx,g+s"
42 - name: Synchronize dehydrated to the server
44 src: /usr/local/src/LetsEncrypt/dehydrated
45 dest: /usr/local/src/LetsEncrypt
47 - name: Configure dehydrated weekly run
51 dest: /etc/cron.weekly