2018-06-25 23:02:24 +02:00
|
|
|
---
|
|
|
|
- name: Initialise certbot
|
|
|
|
block:
|
|
|
|
- name: Initial run of certbot
|
2018-06-26 21:11:52 +02:00
|
|
|
shell: >
|
2018-06-25 23:02:24 +02:00
|
|
|
certbot
|
|
|
|
--config-dir {{ certbot_config_dir }}
|
|
|
|
--work-dir {{ certbot_work_dir }}
|
|
|
|
--logs-dir {{ certbot_log_dir }}
|
|
|
|
{{ certbot_command_arguments | join(' ') }}
|
2018-06-26 22:03:58 +02:00
|
|
|
register: certbot_init
|
|
|
|
changed_when: certbot_init.rc == 130
|
2018-06-26 22:08:37 +02:00
|
|
|
ignore_errors: True
|
2018-06-25 23:02:24 +02:00
|
|
|
become: True
|
|
|
|
become_user: "{{ certbot_user }}"
|
|
|
|
when: certbot_initial_run_enabled
|