Refactor certbot role
This commit is contained in:
14
roles/certbot/templates/certbot.service.j2
Normal file
14
roles/certbot/templates/certbot.service.j2
Normal file
@ -0,0 +1,14 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
[Unit]
|
||||
Description=Certbot renewal
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
Wants={{ certbot_timer_name }}
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart={{ certbot_path }} --quiet renew
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,5 +1,12 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
[Unit]
|
||||
Description=Certbot renewal
|
||||
Requires={{ certbot_service_name }}
|
||||
|
||||
[Timer]
|
||||
OnCalendar={{ certbot_system_timer_on_calender }}
|
||||
RandomizedDelaySec={{ certbot_system_timer_randomized_delay_sec }}
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Reference in New Issue
Block a user