Move template to file
This commit is contained in:
parent
72215de265
commit
33bf21ac3f
2 changed files with 2 additions and 1 deletions
|
@ -63,7 +63,7 @@
|
||||||
- name: Add Nginx sites
|
- name: Add Nginx sites
|
||||||
notify: nginx | Restart Nginx
|
notify: nginx | Restart Nginx
|
||||||
template:
|
template:
|
||||||
content: '{{ item.content }}'
|
src: 'templates/site.conf'
|
||||||
dest: '{{ nginx__available_dir }}/{{ item.domain }}.conf'
|
dest: '{{ nginx__available_dir }}/{{ item.domain }}.conf'
|
||||||
mode: 'u=rw,go=r'
|
mode: 'u=rw,go=r'
|
||||||
owner: root
|
owner: root
|
||||||
|
|
1
templates/site.conf
Normal file
1
templates/site.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{{ item.content }}
|
Loading…
Add table
Reference in a new issue