Move template to file

This commit is contained in:
Alex Kotov 2021-09-20 09:39:11 +05:00
parent 72215de265
commit 33bf21ac3f
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
2 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,7 @@
- name: Add Nginx sites
notify: nginx | Restart Nginx
template:
content: '{{ item.content }}'
src: 'templates/site.conf'
dest: '{{ nginx__available_dir }}/{{ item.domain }}.conf'
mode: 'u=rw,go=r'
owner: root

1
templates/site.conf Normal file
View File

@ -0,0 +1 @@
{{ item.content }}