ansible/roles/acertmgr/tasks/main.yml

28 lines
727 B
YAML
Raw Normal View History

2016-02-28 15:19:21 +01:00
---
- name: Install dependencies
2017-09-09 11:23:30 +02:00
apt: name={{ item }}
2016-02-28 15:19:21 +01:00
with_items:
- git
- python-cryptography
- python-dnspython
2016-02-28 15:19:21 +01:00
- python-yaml
2016-02-28 15:19:21 +01:00
- name: Install acertmgr
git: repo=https://github.com/moepman/acertmgr.git dest=/opt/acertmgr depth=1 version=02036f56173e3a87173fed33103918c7c5279c5a
2016-02-28 15:19:21 +01:00
- name: Create config directories
file: path={{ item }} state=directory mode=0755
with_items:
- /etc/acme
- /etc/acme/domains.d
- name: Configure acertmgr
template: src=acme.conf.j2 dest=/etc/acme/acme.conf
- 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