ansible/roles/acertmgr/tasks/main.yml
Jan-Jonas Sämann 22372c931d Update role acertmgr add var acertmgr_version
Defining variable acertmgr_version from role defaults, allows version
string to be overridden. Role defaults are set in connection: local scope.
This also shortens long line to make this role linter compliant
2020-06-22 13:27:26 +02:00

38 lines
768 B
YAML

---
- name: Install dependencies
apt:
name:
- python3-cryptography
- python3-dnspython
- python3-yaml
- python3-pkg-resources
- name: Install acertmgr
apt:
deb: "https://github.com/moepman/acertmgr/releases/download/{{ acertmgr_version }}/python3-acertmgr_{{ acertmgr_version }}-1_all.deb"
- name: Create config directories
file:
path: /etc/acertmgr
state: directory
mode: 0755
- name: Configure acertmgr
template:
src: acertmgr.conf.j2
dest: /etc/acertmgr/acertmgr.conf
- name: Create challenge directory
file:
path: /var/www/acme-challenge/
owner: root
mode: 0755
state: directory
- name: Enable acertmgr cronjob
cron:
name: certmgr
special_time: daily
job: /usr/bin/acertmgr