From 60e58207b8f409e9d3083a01dc911931e794d12c Mon Sep 17 00:00:00 2001 From: lulzette Date: Thu, 25 Feb 2021 18:05:51 +0300 Subject: [PATCH] create dirs --- 1/roles/nginx/tasks/main.yml | 7 +++++++ 1/roles/nginx/vars/main.yml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/1/roles/nginx/tasks/main.yml b/1/roles/nginx/tasks/main.yml index 5428b1e..48b4ad5 100644 --- a/1/roles/nginx/tasks/main.yml +++ b/1/roles/nginx/tasks/main.yml @@ -28,6 +28,13 @@ owner: www-data loop: ['wiki.conf', 'root.conf', 'pma.conf', 'default_server.conf', 'cloud.conf'] +- name: create dirs + file: + path: /var/www/{{item}} + state: directory + owner: www-data + loop: ['pma','cloud','wiki','default','root'] + - name: stop nginx service: name: nginx diff --git a/1/roles/nginx/vars/main.yml b/1/roles/nginx/vars/main.yml index 903f64e..0207bd7 100644 --- a/1/roles/nginx/vars/main.yml +++ b/1/roles/nginx/vars/main.yml @@ -1,3 +1,3 @@ --- -domain: xz777.ru +domain: zz777.ru root: /var/www \ No newline at end of file