Skip to content
Snippets Groups Projects
Commit 7eca1410 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

acmebot: Install via pip

Turns out, the last fix didn’t actually work – it seems to no longer be
supported not to install acmebot.

Fixes: a877b0
parent ddfcdeeb
No related branches found
No related tags found
1 merge request!48acmebot: Install via pip
Pipeline #5346 passed
This commit is part of merge request !48. Comments created here will be created in the context of that merge request.
---
acmebot_account_mail: "{{ adminaddr }}"
acmebot_version: "v2.10.0"
acmebot_version: "2.11.0"
acmebot_settings: {}
acmebot_default_settings:
......
/var/log/acmebot/*.log {
weekly
missingok
rotate 12
compress
delaycompress
notifempty
}
......@@ -6,7 +6,7 @@ After=apache2.service nginx.service bind9.service nginx-proxy.service
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/acmebot --accept
ExecStart=/usr/local/bin/acmebot --accept
TimeoutStartSec=5min
CapabilityBoundingSet=CAP_CHOWN
NoNewPrivileges=yes
......
......@@ -3,6 +3,7 @@
- name: ensure requirements for acmebot are installed
apt:
name:
- python3-pip
- python3-appdirs
- python3-pyparsing
- python3-packaging
......@@ -14,20 +15,17 @@
- python3-yaml
state: present
- name: get the acmebot repository
git:
repo: https://github.com/plinss/acmebot.git
dest: /opt/acmebot
version: "{{acmebot_version}}"
force: true
environment:
TMPDIR: /root/.ansible/tmp
- name: add acmebot to path
- name: Remove old acmebot link
file:
src: /opt/acmebot/src/acmebot/acmebot.py
dest: /usr/local/sbin/acmebot
state: link
path: /usr/local/sbin/acmebot
state: absent
- name: Install acmebot
pip:
name: >-
acmebot{{ "==" + acmebot_version|regex_replace('^v', '') if
acmebot_version is defined else "" }}
extra_args: --no-deps
- name: install systemd units
copy:
......@@ -84,7 +82,11 @@
state: absent
- name: rotate acmebot logs
file:
src: /opt/acmebot/logrotate.d/acmebot
copy:
src: acmebot.logrotate
dest: /etc/logrotate.d/acmebot
state: link
- name: Cleanup old installation
file:
path: /opt/acmebot
state: absent
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment