mirror of
https://github.com/geerlingguy/ansible-role-nginx.git
synced 2025-02-12 00:31:47 +01:00
Changed 'include' to 'import_tasks' and 'include_tasks' as 'include' will be deprecated in v2.8
This commit is contained in:
parent
7aa2ea4779
commit
dec3152c2d
@ -9,26 +9,26 @@
|
||||
when: nginx_user is not defined
|
||||
|
||||
# Setup/install tasks.
|
||||
- include: setup-RedHat.yml
|
||||
- include_tasks: setup-RedHat.yml
|
||||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
- include: setup-Ubuntu.yml
|
||||
- include_tasks: setup-Ubuntu.yml
|
||||
when: ansible_distribution == 'Ubuntu'
|
||||
|
||||
- include: setup-Debian.yml
|
||||
- include_tasks: setup-Debian.yml
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- include: setup-FreeBSD.yml
|
||||
- include_tasks: setup-FreeBSD.yml
|
||||
when: ansible_os_family == 'FreeBSD'
|
||||
|
||||
- include: setup-OpenBSD.yml
|
||||
- include_tasks: setup-OpenBSD.yml
|
||||
when: ansible_os_family == 'OpenBSD'
|
||||
|
||||
- include: setup-Archlinux.yml
|
||||
- include_tasks: setup-Archlinux.yml
|
||||
when: ansible_os_family == 'Archlinux'
|
||||
|
||||
# Vhost configuration.
|
||||
- include: vhosts.yml
|
||||
- import_tasks: vhosts.yml
|
||||
|
||||
# Nginx setup.
|
||||
- name: Copy nginx configuration in place.
|
||||
|
Loading…
Reference in New Issue
Block a user