--- - name: Gather package facts. package_facts: manager: "auto" - name: Clone dehydrated repo. git: repo: 'https://github.com/dehydrated-io/dehydrated.git' dest: "{{ dehydrated_location }}" version: "{{ dehydrated_version }}" - name: Ensure dehydrated symlink is present. file: src: "{{ dehydrated_location }}/dehydrated" dest: "{{ dehydrated_binary }}" state: link - name: Ensure config directory is present. file: path: "{{ dehydrated_config }}" state: directory - name: Ensure domains.txt is present. file: path: "{{ dehydrated_config }}/domains.txt" state: touch - name: Ensure config is present. template: src: config.j2 dest: "{{ dehydrated_config }}/config" notify: dehydrated register - name: Create wellknown directory. file: state: directory path: /var/www/letsencrypt