blob: c2fc2c6c5459ef37c29f068ad9c8f5d06a991aaa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
---
- name: check if acmetool package is new enough
debug:
msg: "Check distribution_release"
failed_when: (ansible_distribution == 'Debian' and ansible_distribution_major_version < 9) or (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version < 17) or (ansible_distribution != 'Debian' and ansible_distribution != 'Ubuntu')
- name: install acmetool
apt:
name: acmetool
state: present
- name: create initial directory structure
command: acmetool --batch
args:
creates: /var/lib/acme/conf
- name: create acmetool response file
template:
src: responses.j2
dest: /var/lib/acme/conf/responses
- name: run quickstart to create account and default target configuration
command: acmetool --batch quickstart
args:
creates: /var/lib/acme/conf/target
|