2016-02-28 15:19:21 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install dependencies
|
2020-06-20 00:20:19 +02:00
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- python3-cryptography
|
|
|
|
- python3-dnspython
|
|
|
|
- python3-yaml
|
|
|
|
- python3-pkg-resources
|
2020-02-17 20:44:21 +01:00
|
|
|
|
2016-02-28 15:19:21 +01:00
|
|
|
- name: Install acertmgr
|
2020-06-20 00:20:19 +02:00
|
|
|
apt:
|
2020-06-20 22:36:29 +02:00
|
|
|
deb: "https://github.com/moepman/acertmgr/releases/download/{{ acertmgr_version }}/python3-acertmgr_{{ acertmgr_version }}-1_all.deb"
|
2016-02-28 15:19:21 +01:00
|
|
|
|
|
|
|
- name: Create config directories
|
2020-06-20 00:20:19 +02:00
|
|
|
file:
|
|
|
|
path: /etc/acertmgr
|
|
|
|
state: directory
|
|
|
|
mode: 0755
|
2016-02-28 15:19:21 +01:00
|
|
|
|
|
|
|
- name: Configure acertmgr
|
2020-06-20 00:20:19 +02:00
|
|
|
template:
|
|
|
|
src: acertmgr.conf.j2
|
|
|
|
dest: /etc/acertmgr/acertmgr.conf
|
2016-02-28 15:19:21 +01:00
|
|
|
|
2016-04-05 08:42:31 +02:00
|
|
|
- name: Create challenge directory
|
2020-06-20 00:20:19 +02:00
|
|
|
file:
|
|
|
|
path: /var/www/acme-challenge/
|
|
|
|
owner: root
|
|
|
|
mode: 0755
|
|
|
|
state: directory
|
2016-02-28 15:19:21 +01:00
|
|
|
|
2017-02-28 13:20:48 +01:00
|
|
|
- name: Enable acertmgr cronjob
|
2020-06-20 00:20:19 +02:00
|
|
|
cron:
|
|
|
|
name: certmgr
|
|
|
|
special_time: daily
|
|
|
|
job: /usr/bin/acertmgr
|