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 cache_valid_time: 3600
16 install_recommends: no
21 - name: Prepare to clone dehydrated
24 path: /usr/local/src/LetsEncrypt
27 - name: Clone dehydrated
30 repo: https://github.com/lukas2511/dehydrated.git
31 dest: /usr/local/src/LetsEncrypt/dehydrated
32 when: not dehydrated.stat.exists
34 - name: Prepare the server to synchronize dehydrated
37 path: /usr/local/src/LetsEncrypt
41 mode: "ug+rwx,o+rx,g+s"
43 - name: Synchronize dehydrated to the server
45 src: /usr/local/src/LetsEncrypt/dehydrated
46 dest: /usr/local/src/LetsEncrypt
48 - name: Configure dehydrated weekly run
52 dest: /etc/cron.weekly