xoxys.certbot/tasks/init.yml

14 lines
374 B
YAML
Raw Normal View History

2018-06-25 21:02:24 +00:00
---
- name: Initialise certbot
block:
- name: Initial run of certbot
2018-06-25 21:40:56 +00:00
shell: |
2018-06-25 21:02:24 +00:00
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