disable random delay and fix test
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful

This commit is contained in:
Robert Kaussow 2024-09-28 23:03:36 +02:00
parent 032107d955
commit c7e08070e3
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
4 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
--- ---
- name: Restart lego renew - name: Restart lego renew
ansible.builtin.service: ansible.builtin.service:
state: restarted state: "{{ lego_renew_enabled | ternary('restarted', 'stopped', 'restarted') }}"
daemon_reload: True daemon_reload: True
name: lego-renew.service name: lego-renew.service
listen: __lego_restart listen: __lego_restart

View File

@ -11,6 +11,7 @@
- example.com - example.com
- www.example.com - www.example.com
skip_create: True skip_create: True
lego_renew_enabled: False
pre_tasks: pre_tasks:
- name: Install requirements - name: Install requirements
ansible.builtin.package: ansible.builtin.package:

View File

@ -96,4 +96,4 @@
name: lego-renew.timer name: lego-renew.timer
daemon_reload: True daemon_reload: True
enabled: True enabled: True
state: started state: "{{ lego_renew_enabled | ternary('started', 'stopped', 'started') }}"

View File

@ -10,7 +10,7 @@ Type=oneshot
EnvironmentFile={{ __lego_systemd_env }} EnvironmentFile={{ __lego_systemd_env }}
{% for cert in lego_certificates %} {% for cert in lego_certificates %}
ExecStart={{ __lego_bin_file }} --email="{{ lego_acme_account_email }}" --domains {{ ' --domains '.join(cert.domains) }} $ARGS renew {{ '--renew-hook="' + __lego_base_dir + '/hooks/' + cert.name + '.sh"' if cert.hook is defined else '' }} --days 30 ExecStart={{ __lego_bin_file }} --email="{{ lego_acme_account_email }}" --domains {{ ' --domains '.join(cert.domains) }} $ARGS renew {{ '--renew-hook="' + __lego_base_dir + '/hooks/' + cert.name + '.sh"' if cert.hook is defined else '' }} --days 30 --no-random-sleep
{% endfor %} {% endfor %}
[Install] [Install]