acertmgr: Use latest package from github instead of git checkout

This commit is contained in:
Markus 2020-02-17 20:44:21 +01:00
parent ab0ff5b9ac
commit a04c216abe

View File

@ -3,13 +3,18 @@
- name: Install dependencies - name: Install dependencies
apt: name={{ item }} apt: name={{ item }}
with_items: with_items:
- git - python3-cryptography
- python-cryptography - python3-dnspython
- python-dnspython - python3-yaml
- python-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 - 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 - name: Create config directories
file: path=/etc/acertmgr state=directory mode=0755 file: path=/etc/acertmgr state=directory mode=0755
@ -21,4 +26,4 @@
file: path=/var/www/acme-challenge/ owner=root mode=0755 state=directory file: path=/var/www/acme-challenge/ owner=root mode=0755 state=directory
- name: Enable acertmgr cronjob - 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