mirror of
https://github.com/famedly/ansible-collection-base
synced 2024-11-10 06:24:17 +00:00
feat(lego): Add ExecStartPre Script option
This commit is contained in:
parent
a412e7161b
commit
82bca3f758
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,9 @@ User={{ lego_user_res.name }}
|
|||
WorkingDirectory={{ lego_base_path }}
|
||||
ExecStartPre=+-chown {{ lego_certificate_store_user }}:{{ lego_certificate_store_group }} {{ lego_certificate_store }}
|
||||
ExecStartPre=+-chmod {{ lego_certificate_store_mode }} {{ lego_certificate_store }}
|
||||
{% if lego_pre_renewal_script is defined %}
|
||||
ExecStartPre=+-{{ lego_pre_renewal_script }}
|
||||
{% endif %}
|
||||
ExecStart={{ lego_command_systemd }}
|
||||
ExecStartPost=+-/bin/sh -c 'chown {{ lego_certificate_store_user }}:{{ lego_certificate_store_group }} {{ lego_certificate_store }}/*'
|
||||
ExecStartPost=+-/bin/sh -c 'chmod 0640 {{ lego_certificate_store }}/*'
|
||||
|
|
Loading…
Reference in a new issue