Fix ansible lint

This commit is contained in:
Emilien Mantel
2021-09-03 12:19:32 +02:00
parent 5e2f988beb
commit 297dc1f669
3 changed files with 8 additions and 2 deletions

View File

@@ -56,9 +56,12 @@
label: "{{ item | nginx_site_name }}"
- name: TEMPLATE | Create sites with preconfigured template
template:
ansible.builtin.template:
src: "{{ item.custom_template }}"
dest: "{{ nginx_etc_dir }}/sites-available/{{ item | nginx_site_filename }}"
mode: 0644
owner: root
group: root
notify: ['reload nginx', 'restart nginx freebsd']
when: (item.state is not defined or item.state != 'absent') and item.custom_template is defined
loop: "{{ nginx_sites }}"