You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
haproxy-wi/app/scripts/ansible/roles/nginx.yml

56 lines
1.1 KiB

---
- name: Install common role
hosts: "{{ variable_host }}"
become: yes
become_method: sudo
gather_facts: yes
roles:
- role: nginx_common
environment:
http_proxy: "{{PROXY}}"
https_proxy: "{{PROXY}}"
tags:
- system
- docker
- name: Install docker
hosts: "{{ variable_host }}"
become: yes
gather_facts: yes
roles:
- role: docker
environment:
http_proxy: "{{PROXY}}"
https_proxy: "{{PROXY}}"
- role: nginx_docker
environment:
http_proxy: "{{PROXY}}"
https_proxy: "{{PROXY}}"
tags:
- docker
- name: Install system role
hosts: "{{ variable_host }}"
become: yes
become_method: sudo
tasks:
- name: Add syn_flood tasks
include: haproxy/tasks/syn_flood.yml
when: (SYN_FLOOD is defined) and (SYN_FLOOD|length > 0)
roles:
- role: nginxinc.nginx
environment:
http_proxy: "{{PROXY}}"
https_proxy: "{{PROXY}}"
tags:
- system
- name: Set correct owner
hosts: "{{ variable_host }}"
become: yes
tasks:
- name: Set
shell: "chown nginx:nginx -R {{ nginx_dir }}"