1
0
forked from infra/ansible
infra/roles/acertmgr/tasks/main.yml

30 lines
952 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:
- python3-cryptography
- python3-dnspython
- python3-yaml
- python3-pkg-resources
- name: Find current acertmgr version
get_url: url="https://raw.githubusercontent.com/moepman/acertmgr/master/version.txt" dest=/tmp/acertmgr.version
vars:
ansible_connection: local
2016-02-28 15:19:21 +01:00
- name: Install acertmgr
apt: deb="https://github.com/moepman/acertmgr/releases/download/{{ lookup('file', '/tmp/acertmgr.version') }}/python3-acertmgr_{{ lookup('file', '/tmp/acertmgr.version') }}-1_all.deb"
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
- 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=/usr/bin/acertmgr