xoxys.certbot/tasks/init.yml

17 lines
472 B
YAML

---
- name: Initialise certbot
block:
- name: Initial run of certbot
shell: >
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