computer-playbook/roles/letsencrypt/tasks/main.yml

14 lines
426 B
YAML
Raw Normal View History

2020-12-24 14:27:31 +01:00
- name: create nginx letsencrypt config file
template: src=letsencrypt.conf.j2 dest={{nginx_servers_directory}}letsencrypt.conf
2020-12-24 14:27:31 +01:00
notify: restart nginx
when: run_once_letsencrypt is not defined
2020-12-24 14:27:31 +01:00
- name: flush nginx service
meta: flush_handlers
when: run_once_letsencrypt is not defined
- name: run the letsencrypt logic just once
set_fact:
run_once_letsencrypt: true
when: run_once_letsencrypt is not defined