|
1 | 1 | ---
|
2 |
| -- import_tasks: setup-debian.yml |
3 |
| - when: ansible_os_family == "Debian" |
| 2 | +- name: "" |
| 3 | + block: |
4 | 4 |
|
5 |
| -- import_tasks: setup-redhat.yml |
6 |
| - when: ansible_os_family == "RedHat" |
| 5 | + - import_tasks: setup-debian.yml |
| 6 | + when: ansible_os_family == "Debian" |
7 | 7 |
|
8 |
| -- import_tasks: setup-suse.yml |
9 |
| - when: ansible_os_family == "Suse" |
| 8 | + - import_tasks: setup-redhat.yml |
| 9 | + when: ansible_os_family == "RedHat" |
10 | 10 |
|
11 |
| -- import_tasks: setup-freebsd.yml |
12 |
| - when: ansible_os_family == "FreeBSD" |
| 11 | + - import_tasks: setup-suse.yml |
| 12 | + when: ansible_os_family == "Suse" |
13 | 13 |
|
14 |
| -- name: "(Install: Debian/Ubuntu/CentOS/RedHat) Install NGINX" |
15 |
| - package: |
16 |
| - name: nginx |
17 |
| - state: present |
18 |
| - when: ansible_os_family != "FreeBSD" |
19 |
| - notify: "(Handler: All OSs) Start NGINX" |
| 14 | + - import_tasks: setup-freebsd.yml |
| 15 | + when: ansible_os_family == "FreeBSD" |
20 | 16 |
|
21 |
| -- name: "(Install: FreeBSD) Install NGINX" |
22 |
| - portinstall: |
| 17 | + - name: "(Install: Debian/Ubuntu/CentOS/RedHat) Install NGINX" |
| 18 | + package: |
| 19 | + name: nginx |
| 20 | + state: present |
| 21 | + when: ansible_os_family != "FreeBSD" |
| 22 | + notify: "(Handler: All OSs) Start NGINX" |
| 23 | + |
| 24 | + - name: "(Install: FreeBSD) Install NGINX" |
| 25 | + portinstall: |
| 26 | + name: nginx |
| 27 | + state: present |
| 28 | + when: ansible_os_family == "FreeBSD" |
| 29 | + notify: "(Handler: All OSs) Start NGINX" |
| 30 | + |
| 31 | + when: install_from == "nginx_repository" |
| 32 | + |
| 33 | +- name: "(Install: Debian/Ubuntu/CentOS/RedHat/FreeBSD) Install NGINX" |
| 34 | + package: |
23 | 35 | name: nginx
|
24 | 36 | state: present
|
25 |
| - when: ansible_os_family == "FreeBSD" |
| 37 | + when: install_from == "os_repository" |
26 | 38 | notify: "(Handler: All OSs) Start NGINX"
|
0 commit comments