|
11 | 11 | state: present
|
12 | 12 | notify: "(Handler: All OSs) Start NGINX Unit"
|
13 | 13 |
|
14 |
| -- name: "(Install: All OSs) Install NGINX Unit" |
| 14 | +- name: "(Install: CentOS) Install NGINX Unit Packages" |
15 | 15 | package:
|
16 | 16 | name: "{{ item }}"
|
17 | 17 | state: present
|
|
20 | 20 | - unit-python
|
21 | 21 | - unit-go
|
22 | 22 | - unit-perl
|
23 |
| - when: ansible_distribution == "CentOS" |
| 23 | + when: ansible_distribution == "CentOS" and unit_packages |
24 | 24 | notify: "(Handler: All OSs) Start NGINX Unit"
|
25 | 25 |
|
26 |
| -- name: "(Install: All OSs) Install NGINX Unit" |
| 26 | +- name: "(Install: RedHat) Install NGINX Unit Packages" |
27 | 27 | package:
|
28 | 28 | name: "{{ item }}"
|
29 | 29 | state: present
|
30 | 30 | with_items:
|
31 | 31 | - unit-php
|
32 | 32 | - unit-python
|
33 | 33 | - unit-perl
|
34 |
| - when: ansible_distribution == "RedHat" and ansible_distribution_major_version|int == 6 |
| 34 | + when: ansible_distribution == "RedHat" and ansible_distribution_major_version|int == 6 and unit_packages |
35 | 35 | notify: "(Handler: All OSs) Start NGINX Unit"
|
36 | 36 |
|
37 |
| -- name: "(Install: All OSs) Install NGINX Unit" |
| 37 | +- name: "(Install: RedHat) Install NGINX Unit Packages" |
38 | 38 | package:
|
39 | 39 | name: "{{ item }}"
|
40 | 40 | state: present
|
|
43 | 43 | - unit-python
|
44 | 44 | - unit-go
|
45 | 45 | - unit-perl
|
46 |
| - when: ansible_distribution == "RedHat" and ansible_distribution_major_version|int == 6 |
| 46 | + when: ansible_distribution == "RedHat" and ansible_distribution_major_version|int == 7 and unit_packages |
47 | 47 | notify: "(Handler: All OSs) Start NGINX Unit"
|
48 | 48 |
|
49 |
| -- name: "(Install: All OSs) Install NGINX Unit" |
| 49 | +- name: "(Install: Amazon Linux) Install NGINX Unit Packages" |
50 | 50 | package:
|
51 | 51 | name: "{{ item }}"
|
52 | 52 | state: present
|
|
61 | 61 | when: ansible_distribution == "Amazon"
|
62 | 62 | notify: "(Handler: All OSs) Start NGINX Unit"
|
63 | 63 |
|
64 |
| -- name: "(Install: All OSs) Install NGINX Unit" |
| 64 | +- name: "(Install: Debian 8) Install NGINX Unit" |
65 | 65 | package:
|
66 | 66 | name: "{{ item }}"
|
67 | 67 | state: present
|
68 | 68 | with_items:
|
69 | 69 | - unit-php
|
70 | 70 | - unit-python2.7
|
71 |
| - - unit-python3.5 |
72 |
| - - unit-go |
| 71 | + - unit-python3.4 |
73 | 72 | - unit-perl
|
74 |
| - when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int == 16 |
| 73 | + when: ansible_distribution == "Debian" and ansible_distribution_major_version|int == 8 and unit_packages |
75 | 74 | notify: "(Handler: All OSs) Start NGINX Unit"
|
76 | 75 |
|
77 |
| -- name: "(Install: All OSs) Install NGINX Unit" |
| 76 | +- name: "(Install: Debian 9) Install NGINX Unit" |
78 | 77 | package:
|
79 | 78 | name: "{{ item }}"
|
80 | 79 | state: present
|
81 | 80 | with_items:
|
82 | 81 | - unit-php
|
83 | 82 | - unit-python2.7
|
84 |
| - - unit-python3.4 |
| 83 | + - unit-python3.5 |
| 84 | + - unit-go1.7 |
| 85 | + - unit-go1.8 |
85 | 86 | - unit-perl
|
86 |
| - when: ansible_distribution == "Debian" and ansible_distribution_major_version|int == 8 |
| 87 | + when: ansible_distribution == "Debian" and ansible_distribution_major_version|int == 9 and unit_packages |
87 | 88 | notify: "(Handler: All OSs) Start NGINX Unit"
|
88 | 89 |
|
89 |
| -- name: "(Install: All OSs) Install NGINX Unit" |
| 90 | +- name: "(Install: Ubuntu) Install NGINX Unit" |
90 | 91 | package:
|
91 | 92 | name: "{{ item }}"
|
92 | 93 | state: present
|
93 | 94 | with_items:
|
94 | 95 | - unit-php
|
95 | 96 | - unit-python2.7
|
96 | 97 | - unit-python3.5
|
97 |
| - - unit-go1.7 |
98 |
| - - unit-go1.8 |
| 98 | + - unit-go |
99 | 99 | - unit-perl
|
100 |
| - when: ansible_distribution == "RedHat" and ansible_distribution_major_version|int == 9 |
| 100 | + when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int == 16 and unit_packages |
101 | 101 | notify: "(Handler: All OSs) Start NGINX Unit"
|
0 commit comments