ansible-nginx/tasks/main.yml

31 lines
649 B
YAML

---
- name: INCLUDE_VARS | Related to OS
include_vars: "{{ ansible_distribution }}.yml"
- name: INCLUDE | Install
include: install_{{ ansible_distribution }}.yml
- name: INCLUDE | Prepare
include: prepare.yml
- name: INCLUDE | Manage dynamic modules
include: dyn_modules.yml
when: nginx_version.stdout | version_compare('1.9.11', 'ge')
- name: INCLUDE | Install
include: config.yml
- name: INCLUDE | Upstream configuration
include: upstream.yml
- name: INCLUDE | htpasswd configuration
include: htpasswd.yml
- name: INCLUDE | SSL configuration
include: ssl.yml
- name: INCLUDE | Vhosts configuration
include: vhost.yml