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
--- ---
acmebot_account_mail: "{{ adminaddr }}" acmebot_account_mail: "{{ adminaddr }}"
acmebot_version: "v2.10.0" acmebot_version: "2.11.0"
acmebot_settings: {} acmebot_settings: {}
acmebot_default_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 ...@@ -6,7 +6,7 @@ After=apache2.service nginx.service bind9.service nginx-proxy.service
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=/usr/local/sbin/acmebot --accept ExecStart=/usr/local/bin/acmebot --accept
TimeoutStartSec=5min TimeoutStartSec=5min
CapabilityBoundingSet=CAP_CHOWN CapabilityBoundingSet=CAP_CHOWN
NoNewPrivileges=yes NoNewPrivileges=yes
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
- name: ensure requirements for acmebot are installed - name: ensure requirements for acmebot are installed
apt: apt:
name: name:
- python3-pip
- python3-appdirs - python3-appdirs
- python3-pyparsing - python3-pyparsing
- python3-packaging - python3-packaging
...@@ -14,20 +15,17 @@ ...@@ -14,20 +15,17 @@
- python3-yaml - python3-yaml
state: present state: present
- name: get the acmebot repository - name: Remove old acmebot link
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
file: file:
src: /opt/acmebot/src/acmebot/acmebot.py path: /usr/local/sbin/acmebot
dest: /usr/local/sbin/acmebot state: absent
state: link
- 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 - name: install systemd units
copy: copy:
...@@ -84,7 +82,11 @@ ...@@ -84,7 +82,11 @@
state: absent state: absent
- name: rotate acmebot logs - name: rotate acmebot logs
file: copy:
src: /opt/acmebot/logrotate.d/acmebot src: acmebot.logrotate
dest: /etc/logrotate.d/acmebot 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