2016-02-28 15:19:21 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install dependencies
|
2017-09-09 11:23:30 +02:00
|
|
|
apt: name={{ item }}
|
2020-02-03 19:46:31 +01:00
|
|
|
loop:
|
2016-04-05 08:42:31 +02:00
|
|
|
- git
|
2019-02-11 19:36:35 +01:00
|
|
|
- python-cryptography
|
|
|
|
- python-dnspython
|
2016-02-28 15:19:21 +01:00
|
|
|
- python-yaml
|
2016-04-05 08:42:31 +02:00
|
|
|
|
2016-02-28 15:19:21 +01:00
|
|
|
- name: Install acertmgr
|
2019-02-25 08:34:21 +01:00
|
|
|
git: repo=https://github.com/moepman/acertmgr.git dest=/opt/acertmgr depth=1 version={{ acertmgr_version }}
|
2016-02-28 15:19:21 +01:00
|
|
|
|
|
|
|
- name: Create config directories
|
2019-05-20 19:38:32 +02:00
|
|
|
file: path=/etc/acertmgr state=directory mode=0755
|
2016-02-28 15:19:21 +01:00
|
|
|
|
|
|
|
- name: Configure acertmgr
|
2019-05-20 19:38:32 +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
|
|
|
|
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
|
|
|
|
cron: name=certmgr special_time=daily job=/opt/acertmgr/acertmgr.py
|