mirror of https://github.com/Aidaho12/haproxy-wi
parent
8df3e77751
commit
097244ab1c
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
- name: Creates directory
|
- name: Creates directory
|
||||||
file:
|
file:
|
||||||
path: /etc/nginx
|
path: "{{nginx_dir}}"
|
||||||
state: directory
|
state: directory
|
||||||
when: "'nginx' not in ansible_facts.packages"
|
when: "'nginx' not in ansible_facts.packages"
|
||||||
|
|
||||||
|
|
||||||
- name: Creates directory
|
- name: Creates directory
|
||||||
file:
|
file:
|
||||||
path: /etc/nginx/conf.d
|
path: "{{nginx_dir}}/conf.d"
|
||||||
state: directory
|
state: directory
|
||||||
when: "'nginx' not in ansible_facts.packages"
|
when: "'nginx' not in ansible_facts.packages"
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
- name: Copy Nginx configuration in place
|
- name: Copy Nginx configuration in place
|
||||||
template:
|
template:
|
||||||
src: default.conf.j2
|
src: default.conf.j2
|
||||||
dest: "{{nginx_dir}}/default.conf"
|
dest: "{{nginx_dir}}/conf.d/default.conf"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
force: no
|
force: no
|
||||||
when: "'nginx' not in ansible_facts.packages"
|
when: "'nginx' not in ansible_facts.packages"
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
- name: Copying over nginx.conf
|
- name: Copying over nginx.conf
|
||||||
template:
|
template:
|
||||||
src: nginx.conf.j2
|
src: nginx.conf.j2
|
||||||
dest: "/etc/nginx/nginx.conf"
|
dest: "{{nginx_dir}}/nginx.conf"
|
||||||
mode: "0666"
|
mode: "0666"
|
||||||
force: no
|
force: no
|
||||||
remote_src: true
|
remote_src: true
|
||||||
|
@ -83,7 +83,7 @@
|
||||||
- name: Copying over mime.types
|
- name: Copying over mime.types
|
||||||
template:
|
template:
|
||||||
src: mime.types.j2
|
src: mime.types.j2
|
||||||
dest: "/etc/nginx/mime.types"
|
dest: "{{nginx_dir}}/mime.types"
|
||||||
mode: "0666"
|
mode: "0666"
|
||||||
force: no
|
force: no
|
||||||
remote_src: true
|
remote_src: true
|
||||||
|
@ -115,7 +115,7 @@
|
||||||
|
|
||||||
|
|
||||||
- htpasswd:
|
- htpasswd:
|
||||||
path: /etc/nginx/status_page_passwdfile
|
path: "{{nginx_dir}}/status_page_passwdfile"
|
||||||
name: "{{STATS_USER}}"
|
name: "{{STATS_USER}}"
|
||||||
password: "{{STATS_PASS}}"
|
password: "{{STATS_PASS}}"
|
||||||
when: "'nginx' not in ansible_facts.packages"
|
when: "'nginx' not in ansible_facts.packages"
|
||||||
|
|
Loading…
Reference in New Issue