---
- name: Copy init_letsencrypt template
  template: 
    src="init_letsencrypt.sh.j2" 
    dest="{{ install_dir }}/init_letsencrypt.sh"
    mode="0755"
  when: ssl_enable | bool
  become: yes

- name: Run init-letsencrypt
  shell: "{{ install_dir}}/init_letsencrypt.sh"
  when: ssl_enable | bool
  become: yes
  notify: "Configure SSL"


