Robert Kaussow
c3d1ce24d7
All checks were successful
continuous-integration/drone/pr Build is passing
18 lines
494 B
YAML
18 lines
494 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 }}
|
|
--agree-tos
|
|
{{ 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
|