Robert Kaussow
2e871aa930
All checks were successful
continuous-integration/drone/push Build is passing
17 lines
474 B
YAML
17 lines
474 B
YAML
---
|
|
- name: Initialise certbot
|
|
block:
|
|
- name: Initial run of certbot
|
|
command: >
|
|
certbot
|
|
--config-dir {{ certbot_config_dir }}
|
|
--work-dir {{ certbot_work_dir }}
|
|
--logs-dir {{ certbot_log_dir }}
|
|
{{ certbot_command_arguments | join(' ') }}
|
|
register: certbot_init
|
|
changed_when: certbot_init.rc == 130
|
|
ignore_errors: True
|
|
become: True
|
|
become_user: "{{ certbot_user }}"
|
|
when: certbot_initial_run_enabled
|