File tree 3 files changed +15
-2
lines changed
StackStorm.st2smoketests/tasks
3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 8
8
- name : reload st2
9
9
become : yes
10
10
command : st2ctl reload --register-all
11
+ when : " 'st2actionrunner' in st2_services"
11
12
12
13
- name : restart st2actionrunner
13
14
become : yes
14
15
service :
15
16
name : st2actionrunner
16
17
state : restarted
18
+ when : " 'st2actionrunner' in st2_services"
17
19
18
20
- name : restart st2auth
19
21
become : yes
20
22
service :
21
23
name : st2auth
22
24
state : restarted
25
+ when : " 'st2auth' in st2_services"
23
26
24
27
- name : restart st2api
25
28
become : yes
26
29
service :
27
30
name : st2api
28
31
state : restarted
32
+ when : " 'st2api' in st2_services"
29
33
30
34
- name : restart st2stream
31
35
become : yes
32
36
service :
33
37
name : st2stream
34
38
state : restarted
39
+ when : " 'st2stream' in st2_services"
Original file line number Diff line number Diff line change 87
87
- name : Install additional Python packages into the st2 virtualenv
88
88
become : yes
89
89
pip :
90
- name : " {{ item }}"
90
+ name : " {{ st2_python_packages }}"
91
91
virtualenv : /opt/stackstorm/st2
92
92
state : present
93
93
register : _task
94
94
retries : 5
95
95
delay : 3
96
96
until : _task is succeeded
97
- with_items : " {{ st2_python_packages }}"
98
97
notify :
99
98
- restart st2
100
99
tags : st2
142
141
loop : " {{ st2_services }}"
143
142
tags : st2
144
143
144
+ - name : Modify st2ctl to only control the given services
145
+ become : yes
146
+ lineinfile :
147
+ path : /opt/stackstorm/st2/bin/st2ctl
148
+ regexp : ' ^COMPONENTS='
149
+ line : " COMPONENTS=\" {{ st2_services | join (' ') }}\" "
150
+ tags : st2
151
+
145
152
# Since flush handlers does not support conditionals, we need to have a dedicated playbook
146
153
# https://github.com/ansible/ansible/issues/41313#issuecomment-520891625
147
154
- name : Flush handlers to prepare StackStorm if there are packs to install
Original file line number Diff line number Diff line change 11
11
changed_when : no
12
12
tags :
13
13
- smoke-tests
14
+ when : " {{ 'st2actionrunner' in st2_services }}"
14
15
15
16
- name : st2 installed
16
17
command : st2 --version
You can’t perform that action at this time.
0 commit comments