File tree Expand file tree Collapse file tree 2 files changed +90
-88
lines changed Expand file tree Collapse file tree 2 files changed +90
-88
lines changed Original file line number Diff line number Diff line change
1
+ - name : " (Install: CentOS) Install NGINX Unit Packages"
2
+ package :
3
+ name : " {{ item }}"
4
+ state : present
5
+ with_items :
6
+ - unit-php
7
+ - unit-python
8
+ - unit-go
9
+ - unit-perl
10
+ when : ansible_distribution == "CentOS"
11
+ notify : " (Handler: All OSs) Start NGINX Unit"
12
+
13
+ - name : " (Install: RedHat 6) Install NGINX Unit Packages"
14
+ package :
15
+ name : " {{ item }}"
16
+ state : present
17
+ with_items :
18
+ - unit-php
19
+ - unit-python
20
+ - unit-perl
21
+ when : ansible_distribution == "RedHat" and ansible_distribution_major_version|int == 6
22
+ notify : " (Handler: All OSs) Start NGINX Unit"
23
+
24
+ - name : " (Install: RedHat 7) Install NGINX Unit Packages"
25
+ package :
26
+ name : " {{ item }}"
27
+ state : present
28
+ with_items :
29
+ - unit-php
30
+ - unit-python
31
+ - unit-go
32
+ - unit-perl
33
+ when : ansible_distribution == "RedHat" and ansible_distribution_major_version|int == 7
34
+ notify : " (Handler: All OSs) Start NGINX Unit"
35
+
36
+ - name : " (Install: Amazon Linux) Install NGINX Unit Packages"
37
+ package :
38
+ name : " {{ item }}"
39
+ state : present
40
+ with_items :
41
+ - unit-php
42
+ - unit-python27
43
+ - unit-python34
44
+ - unit-python35
45
+ - unit-python36
46
+ - unit-go
47
+ - unit-perl
48
+ when : ansible_distribution == "Amazon"
49
+ notify : " (Handler: All OSs) Start NGINX Unit"
50
+
51
+ - name : " (Install: Debian Jessie) Install NGINX Unit"
52
+ package :
53
+ name : " {{ item }}"
54
+ state : present
55
+ with_items :
56
+ - unit-php
57
+ - unit-python2.7
58
+ - unit-python3.4
59
+ - unit-perl
60
+ when : ansible_distribution == "Debian" and ansible_distribution_major_version|int == 8
61
+ notify : " (Handler: All OSs) Start NGINX Unit"
62
+
63
+ - name : " (Install: Debian Stretch) Install NGINX Unit"
64
+ package :
65
+ name : " {{ item }}"
66
+ state : present
67
+ with_items :
68
+ - unit-php
69
+ - unit-python2.7
70
+ - unit-python3.5
71
+ - unit-go1.7
72
+ - unit-go1.8
73
+ - unit-perl
74
+ when : ansible_distribution == "Debian" and ansible_distribution_major_version|int == 9
75
+ notify : " (Handler: All OSs) Start NGINX Unit"
76
+
77
+ - name : " (Install: Ubuntu) Install NGINX Unit"
78
+ package :
79
+ name : " {{ item }}"
80
+ state : present
81
+ with_items :
82
+ - unit-php
83
+ - unit-python2.7
84
+ - unit-python3.5
85
+ - unit-go
86
+ - unit-perl
87
+ when : ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int == 16
88
+ notify : " (Handler: All OSs) Start NGINX Unit"
Original file line number Diff line number Diff line change 11
11
state : present
12
12
notify : " (Handler: All OSs) Start NGINX Unit"
13
13
14
- - name : " (Install: CentOS) Install NGINX Unit Packages"
15
- package :
16
- name : " {{ item }}"
17
- state : present
18
- with_items :
19
- - unit-php
20
- - unit-python
21
- - unit-go
22
- - unit-perl
23
- when : ansible_distribution == "CentOS" and unit_packages
24
- notify : " (Handler: All OSs) Start NGINX Unit"
25
-
26
- - name : " (Install: RedHat) Install NGINX Unit Packages"
27
- package :
28
- name : " {{ item }}"
29
- state : present
30
- with_items :
31
- - unit-php
32
- - unit-python
33
- - unit-perl
34
- when : ansible_distribution == "RedHat" and ansible_distribution_major_version|int == 6 and unit_packages
35
- notify : " (Handler: All OSs) Start NGINX Unit"
36
-
37
- - name : " (Install: RedHat) Install NGINX Unit Packages"
38
- package :
39
- name : " {{ item }}"
40
- state : present
41
- with_items :
42
- - unit-php
43
- - unit-python
44
- - unit-go
45
- - unit-perl
46
- when : ansible_distribution == "RedHat" and ansible_distribution_major_version|int == 7 and unit_packages
47
- notify : " (Handler: All OSs) Start NGINX Unit"
48
-
49
- - name : " (Install: Amazon Linux) Install NGINX Unit Packages"
50
- package :
51
- name : " {{ item }}"
52
- state : present
53
- with_items :
54
- - unit-php
55
- - unit-python27
56
- - unit-python34
57
- - unit-python35
58
- - unit-python36
59
- - unit-go
60
- - unit-perl
61
- when : ansible_distribution == "Amazon"
62
- notify : " (Handler: All OSs) Start NGINX Unit"
63
-
64
- - name : " (Install: Debian 8) Install NGINX Unit"
65
- package :
66
- name : " {{ item }}"
67
- state : present
68
- with_items :
69
- - unit-php
70
- - unit-python2.7
71
- - unit-python3.4
72
- - unit-perl
73
- when : ansible_distribution == "Debian" and ansible_distribution_major_version|int == 8 and unit_packages
74
- notify : " (Handler: All OSs) Start NGINX Unit"
75
-
76
- - name : " (Install: Debian 9) Install NGINX Unit"
77
- package :
78
- name : " {{ item }}"
79
- state : present
80
- with_items :
81
- - unit-php
82
- - unit-python2.7
83
- - unit-python3.5
84
- - unit-go1.7
85
- - unit-go1.8
86
- - unit-perl
87
- when : ansible_distribution == "Debian" and ansible_distribution_major_version|int == 9 and unit_packages
88
- notify : " (Handler: All OSs) Start NGINX Unit"
89
-
90
- - name : " (Install: Ubuntu) Install NGINX Unit"
91
- package :
92
- name : " {{ item }}"
93
- state : present
94
- with_items :
95
- - unit-php
96
- - unit-python2.7
97
- - unit-python3.5
98
- - unit-go
99
- - unit-perl
100
- when : ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int == 16 and unit_packages
101
- notify : " (Handler: All OSs) Start NGINX Unit"
14
+ - import_tasks : install-packages.yml
15
+ when : unit_packages
You can’t perform that action at this time.
0 commit comments