1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_acmetool.git synced 2024-08-16 12:29:49 +02:00

Debian already has its own systemd units

This commit is contained in:
Raoul 2019-07-27 17:41:39 +02:00
parent b5246ed0bd
commit 4d3cafbfd0
No known key found for this signature in database
GPG key ID: C7493D73B67C1842
4 changed files with 0 additions and 51 deletions

View file

@ -1,14 +0,0 @@
[Unit]
Description = Update Let's Encrypt certificates
[Service]
ExecStart = /usr/bin/acmetool --batch reconcile
#User = acme
#Group = acme
PrivateTmp = True
PrivateDevices = True
ProtectSystem = True
ProtectHome = True
NoNewPrivileges = True

View file

@ -1,11 +0,0 @@
[Unit]
Description = Timer unit to update Let's Encrypt certificates once a day
After = connection.service
[Timer]
OnCalendar = *-*-* 20:00:00
Unit = acme.service
Persistent = True
[Install]
WantedBy = multi-user.target

View file

@ -1,8 +0,0 @@
---
- name: Reload systemd and enable units
systemd:
name: 'acme.timer'
daemon_reload: yes
enabled: yes
state: started

View file

@ -8,24 +8,6 @@
- installation - installation
- name: Install systemd units for acmetool
template:
src: 'files/{{ item }}'
dest: '/etc/systemd/system/{{ item }}'
owner: root
group: root
mode: 'u=rw,g=r,o=r'
with_items:
- 'acme.service'
- 'acme.timer'
notify:
- Reload systemd and enable units
tags:
- installation
- configuration
- acme
- name: Create directory for acmetool response file - name: Create directory for acmetool response file
file: file:
name: '/var/lib/acme/conf' name: '/var/lib/acme/conf'