From 4d3cafbfd02616d9470c8db7f648e51cad043699 Mon Sep 17 00:00:00 2001 From: Raoul Date: Sat, 27 Jul 2019 17:41:39 +0200 Subject: [PATCH] Debian already has its own systemd units --- files/acme.service | 14 -------------- files/acme.timer | 11 ----------- handlers/main.yml | 8 -------- tasks/main.yml | 18 ------------------ 4 files changed, 51 deletions(-) delete mode 100644 files/acme.service delete mode 100644 files/acme.timer delete mode 100644 handlers/main.yml diff --git a/files/acme.service b/files/acme.service deleted file mode 100644 index 3535ea2..0000000 --- a/files/acme.service +++ /dev/null @@ -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 diff --git a/files/acme.timer b/files/acme.timer deleted file mode 100644 index 0148fba..0000000 --- a/files/acme.timer +++ /dev/null @@ -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 diff --git a/handlers/main.yml b/handlers/main.yml deleted file mode 100644 index aac2c38..0000000 --- a/handlers/main.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- - -- name: Reload systemd and enable units - systemd: - name: 'acme.timer' - daemon_reload: yes - enabled: yes - state: started diff --git a/tasks/main.yml b/tasks/main.yml index 47f9a86..94c95f7 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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'