Refactored

This commit is contained in:
2023-04-26 14:38:02 +02:00
parent 3b50b9e6f7
commit 6a4dea3582
18 changed files with 30 additions and 27 deletions

View File

@@ -15,9 +15,9 @@
state: directory
mode: 0755
- name: "create /home/administrator/scripts/mailu"
- name: "create {{path_administrator_scripts}}mailu"
file:
path: "/home/administrator/scripts/mailu"
path: "{{path_administrator_scripts}}mailu"
state: directory
mode: 0755
@@ -48,7 +48,7 @@
- name: add deploy-letsencrypt-mailu.sh
template:
src: "deploy-letsencrypt-mailu.sh.j2"
dest: "/home/administrator/scripts/mailu/deploy-letsencrypt-mailu.sh"
dest: "{{path_administrator_scripts}}mailu/deploy-letsencrypt-mailu.sh"
- name: configure deploy-letsencrypt-mailu.service
template:

View File

@@ -4,4 +4,4 @@ OnFailure=systemd-email@%n.service
[Service]
Type=oneshot
ExecStart=/usr/bin/bash /home/administrator/scripts/mailu/deploy-letsencrypt-mailu.sh
ExecStart=/usr/bin/bash {{path_administrator_scripts}}mailu/deploy-letsencrypt-mailu.sh