xoxys.certbot/tasks/init.yml

14 lines
374 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(' ') }}
become: True
become_user: "{{ certbot_user }}"
when: certbot_initial_run_enabled