Authored by Your Name

ufo nginx目录配置

@@ -8,6 +8,20 @@ @@ -8,6 +8,20 @@
8 msg: "user do not type YES" 8 msg: "user do not type YES"
9 when: confirmation != 'YES' 9 when: confirmation != 'YES'
10 10
  11 +# make sure user www exist
  12 +- name: "make sure user www exist"
  13 + user:
  14 + name: www
  15 +
  16 +# make sure log path exist
  17 +- name: "make sure log path exist"
  18 + file:
  19 + path: /Data/logs/nginx/
  20 + state: directory
  21 + mode: 0755
  22 + owner: www
  23 + group: www
  24 +
11 # make sure path exist 25 # make sure path exist
12 - stat: 26 - stat:
13 path: "{{ path }}" 27 path: "{{ path }}"