xoxys.certbot/tasks/setup.yml

18 lines
529 B
YAML
Raw Normal View History

2018-06-25 21:02:24 +00:00
---
- name: Initialise certbot
block:
- name: Initial run of certbot
2019-10-15 22:20:29 +00:00
command: >
2020-04-20 22:10:25 +00:00
{{ certbot_bin | default(__certbot_bin) }}
2018-06-25 21:02:24 +00:00
--config-dir {{ certbot_config_dir }}
--work-dir {{ certbot_work_dir }}
--logs-dir {{ certbot_log_dir }}
2020-04-19 21:27:41 +00:00
--agree-tos
2018-06-25 21:02:24 +00:00
{{ certbot_command_arguments | join(' ') }}
2018-06-26 20:03:58 +00:00
register: certbot_init
changed_when: certbot_init.rc == 130
2018-06-26 20:08:37 +00:00
ignore_errors: True
2018-06-25 21:02:24 +00:00
become: True
become_user: "{{ certbot_user }}"
when: certbot_initial_run_enabled