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:
parent
b5246ed0bd
commit
4d3cafbfd0
4 changed files with 0 additions and 51 deletions
|
@ -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
|
|
@ -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
|
|
@ -1,8 +0,0 @@
|
|||
---
|
||||
|
||||
- name: Reload systemd and enable units
|
||||
systemd:
|
||||
name: 'acme.timer'
|
||||
daemon_reload: yes
|
||||
enabled: yes
|
||||
state: started
|
|
@ -8,24 +8,6 @@
|
|||
- 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
|
||||
file:
|
||||
name: '/var/lib/acme/conf'
|
||||
|
|
Loading…
Reference in a new issue