1 - name: Test if dehydrated is already cloned
4 path: /usr/local/src/LetsEncrypt/dehydrated/.git/config
12 install_recommends: no
17 when: not dehydrated.stat.exists
19 - name: Prepare to clone dehydrated
22 path: /usr/local/src/LetsEncrypt
24 when: not dehydrated.stat.exists
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 syncronize dehydrated
36 path: /usr/local/src/LetsEncrypt
40 mode: "ug+rwx,o+rx,g+s"
42 - name: Syncronize 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