ansible-nginx/tasks/main.yml

31 lines
850 B
YAML

---
- name: INCLUDE_VARS | Related to OS
ansible.builtin.include_vars: "{{ ansible_os_family }}.yml"
tags: ['nginx::site', 'nginx::ssl']
- name: INCLUDE_TASKS | Install
ansible.builtin.import_tasks: "install/main.yml"
tags: ['nginx::site', 'nginx::ssl']
- name: IMPORT_TASKS| Prepare
ansible.builtin.import_tasks: prepare.yml
tags: ['nginx::site', 'nginx::ssl']
- name: IMPORT_TASKS| Install
ansible.builtin.import_tasks: config.yml
- name: IMPORT_TASKS| Upstream configuration
ansible.builtin.import_tasks: upstream.yml
- name: IMPORT_TASKS| htpasswd configuration
ansible.builtin.import_tasks: htpasswd.yml
- name: IMPORT_TASKS| SSL configuration
ansible.builtin.import_tasks: ssl/main.yml
tags: ['nginx::ssl']
- name: IMPORT_TASKS| Sites configuration
ansible.builtin.import_tasks: site.yml
tags: ['nginx::site']