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

25 lines
607 B
YAML
Raw Normal View History

2021-07-16 01:19:30 +02:00
---
- 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'