xoxys.certbot/tasks/setup.yml
Robert Kaussow 14e09868e5
All checks were successful
continuous-integration/drone/push Build is passing
add absolut path for certbot
2020-04-21 00:10:25 +02:00

18 lines
529 B
YAML

---
- name: Initialise certbot
block:
- name: Initial run of certbot
command: >
{{ certbot_bin | default(__certbot_bin) }}
--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