1
0

Изменена структура ролей для контейнеров

This commit is contained in:
2018-11-25 15:05:11 +03:00
parent 244c9a96e4
commit 368eeeaa0b
14 changed files with 180 additions and 33 deletions

View File

@ -0,0 +1,19 @@
---
- name: "Create nginx config for {{ nginx_proxy_name }} from {{ nginx_proxy_template }}."
template:
src: '{{ nginx_proxy_template }}'
dest: "/etc/nginx/sites-enabled/{{ nginx_proxy_name }}.conf"
notify: restart nginx
tags:
- webserver
- name: "Create root folder for {{ nginx_proxy_name }}."
file:
path: "{{ nginx_proxy_dir }}"
state: directory
owner: "{{ deploy_user }}"
group: www-data
recurse: yes
notify: restart nginx
tags:
- webserver