Add configuration for primary vds
This commit is contained in:
14
ansible/roles/site-s2photo/tasks/main.yml
Executable file
14
ansible/roles/site-s2photo/tasks/main.yml
Executable file
@ -0,0 +1,14 @@
|
||||
---
|
||||
- name: Create nginx config
|
||||
template:
|
||||
src: site.conf.j2
|
||||
dest: /etc/nginx/sites-enabled/s2photo.conf
|
||||
notify: restart nginx
|
||||
|
||||
- name: Create root folder
|
||||
file:
|
||||
path: /var/www/s2photo
|
||||
state: directory
|
||||
owner: deployer
|
||||
group: deployer
|
||||
mode: u=rw,g=r,o=r
|
Reference in New Issue
Block a user