purge: yes
state: latest
update_cache: yes
- when: dehydrated.stat.exists
+ when: not dehydrated.stat.exists
- name: Prepare to clone dehydrated
local_action:
module: file
path: /usr/local/src/LetsEncrypt
state: directory
- when: dehydrated.stat.exists
+ when: not dehydrated.stat.exists
- name: Clone dehydrated
local_action:
module: git
repo: https://github.com/lukas2511/dehydrated.git
dest: /usr/local/src/LetsEncrypt
- when: dehydrated.stat.exists
+ when: not dehydrated.stat.exists
- name: Prepare the server to syncronize dehydrated
become: true