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:
|
2022-10-25 22:51:18 +02:00
|
|
|
src: "{{ lookup('first_found', acmetool__response_file) }}"
|
2021-07-16 01:19:30 +02:00
|
|
|
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'
|