1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_acmetool.git synced 2024-08-16 12:29:49 +02:00
ansible_role_acmetool/tasks/configure.yml
2022-10-25 22:51:18 +02:00

24 lines
606 B
YAML

---
- name: Create directory for acmetool response file
become: true
ansible.builtin.file:
name: '/var/lib/acme/conf'
state: directory
owner: root
group: root
mode: 'u=rwx,g=rx,o=rx'
- name: Copy acmetool response file
become: true
ansible.builtin.template:
src: "{{ lookup('first_found', acmetool__response_file) }}"
dest: '/var/lib/acme/conf/responses'
owner: root
group: root
mode: 'u=rw,g=r,o=r'
- name: Perform acmetool quickstart
become: true
ansible.builtin.command: acmetool quickstart --expert
args:
creates: '/var/lib/acme/conf/target'