2018-01-10 23:40:01 +01:00
|
|
|
---
|
2018-07-12 00:41:10 +02:00
|
|
|
- name: "(Install: Debian/Ubuntu/CentOS/RedHat/FreeBSD) Install NGINX"
|
2018-05-11 22:31:31 +02:00
|
|
|
block:
|
2018-01-10 23:40:01 +01:00
|
|
|
|
2018-05-11 22:31:31 +02:00
|
|
|
- import_tasks: setup-debian.yml
|
|
|
|
when: ansible_os_family == "Debian"
|
2018-01-10 23:40:01 +01:00
|
|
|
|
2018-05-11 22:31:31 +02:00
|
|
|
- import_tasks: setup-redhat.yml
|
|
|
|
when: ansible_os_family == "RedHat"
|
2018-01-10 23:40:01 +01:00
|
|
|
|
2018-05-11 22:31:31 +02:00
|
|
|
- import_tasks: setup-suse.yml
|
|
|
|
when: ansible_os_family == "Suse"
|
2018-05-09 22:31:16 +02:00
|
|
|
|
2018-05-11 22:31:31 +02:00
|
|
|
- import_tasks: setup-freebsd.yml
|
|
|
|
when: ansible_os_family == "FreeBSD"
|
2018-05-09 22:31:16 +02:00
|
|
|
|
2018-05-11 22:31:31 +02:00
|
|
|
- name: "(Install: Debian/Ubuntu/CentOS/RedHat) Install NGINX"
|
|
|
|
package:
|
|
|
|
name: nginx
|
|
|
|
state: present
|
|
|
|
when: ansible_os_family != "FreeBSD"
|
|
|
|
notify: "(Handler: All OSs) Start NGINX"
|
|
|
|
|
|
|
|
- name: "(Install: FreeBSD) Install NGINX"
|
|
|
|
portinstall:
|
|
|
|
name: nginx
|
|
|
|
state: present
|
|
|
|
when: ansible_os_family == "FreeBSD"
|
|
|
|
notify: "(Handler: All OSs) Start NGINX"
|
|
|
|
|
2018-09-15 02:27:12 +02:00
|
|
|
when: nginx_install_from == "nginx_repository"
|
2018-05-11 22:31:31 +02:00
|
|
|
|
|
|
|
- name: "(Install: Debian/Ubuntu/CentOS/RedHat/FreeBSD) Install NGINX"
|
|
|
|
package:
|
2018-01-10 23:40:01 +01:00
|
|
|
name: nginx
|
|
|
|
state: present
|
2018-09-15 01:28:20 +02:00
|
|
|
when: nginx_install_from == "os_repository"
|
2018-01-26 20:00:26 +01:00
|
|
|
notify: "(Handler: All OSs) Start NGINX"
|