|
|
@ -12,7 +12,7 @@
|
|
|
|
name: "{{ nginx_installation_directory }}/{{ item }}"
|
|
|
|
name: "{{ nginx_installation_directory }}/{{ item }}"
|
|
|
|
with_items: "{{ nginx_unnecessary_files }}"
|
|
|
|
with_items: "{{ nginx_unnecessary_files }}"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Create directory {{ item }}
|
|
|
|
- name: Create directories for nginx
|
|
|
|
file:
|
|
|
|
file:
|
|
|
|
state: directory
|
|
|
|
state: directory
|
|
|
|
name: "{{ item }}"
|
|
|
|
name: "{{ item }}"
|
|
|
@ -56,7 +56,7 @@
|
|
|
|
dest: "{{ nginx_installation_directory }}/nginx.conf"
|
|
|
|
dest: "{{ nginx_installation_directory }}/nginx.conf"
|
|
|
|
notify: reload nginx
|
|
|
|
notify: reload nginx
|
|
|
|
|
|
|
|
|
|
|
|
- name: Allow port {{ item }} for http in firewall
|
|
|
|
- name: Allow ports for http in firewall
|
|
|
|
ufw:
|
|
|
|
ufw:
|
|
|
|
rule: allow
|
|
|
|
rule: allow
|
|
|
|
port: "{{ item }}"
|
|
|
|
port: "{{ item }}"
|
|
|
|