1
0
forked from infra/ansible

acertmgr: Use latest package from github instead of git checkout

This commit is contained in:
Kishi85 2020-02-17 19:43:42 +01:00
parent 1a116703db
commit 2ecd06d066

View File

@ -3,13 +3,18 @@
- name: Install dependencies
apt: name={{ item }}
loop:
- git
- python-cryptography
- python-dnspython
- python-yaml
- 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
- name: Install acertmgr
git: repo=https://github.com/moepman/acertmgr.git dest=/opt/acertmgr depth=1 version={{ acertmgr_version }}
apt: deb="https://github.com/moepman/acertmgr/releases/download/{{ lookup('file', '/tmp/acertmgr.version') }}/python3-acertmgr_{{ lookup('file', '/tmp/acertmgr.version') }}-1_all.deb"
- name: Create config directories
file: path=/etc/acertmgr state=directory mode=0755
@ -21,4 +26,4 @@
file: path=/var/www/acme-challenge/ owner=root mode=0755 state=directory
- name: Enable acertmgr cronjob
cron: name=certmgr special_time=daily job=/opt/acertmgr/acertmgr.py
cron: name=certmgr special_time=daily job=/usr/bin/acertmgr