Skip to content

Commit d37a999

Browse files
committed
Simplify the profile role in ansible
Signed-off-by: Florent Poinsard <[email protected]>
1 parent 4586f67 commit d37a999

File tree

3 files changed

+5
-23
lines changed

3 files changed

+5
-23
lines changed

ansible/macrobench.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,16 @@
4040
tasks_from: install
4141

4242
- hosts: macrobench
43-
include_role:
44-
name: profile
45-
tasks_from: start
43+
roles:
44+
- profile
4645

4746
- hosts: macrobench
4847
roles:
4948
- macrobench
5049

5150
- hosts: macrobench
52-
include_role:
53-
name: profile
54-
tasks_from: stop
51+
roles:
52+
- profile
5553

5654
- name: Clean Post Macrobench
5755
when: arewefastyet_next_exec_is_same is undefined

ansible/roles/profile/tasks/start.yml renamed to ansible/roles/profile/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# limitations under the License.
1111

1212
---
13-
- name: Start profiling
13+
- name: Toggle profiling
1414
shell: |
1515
kill -s USR1 $(pgrep -d " " {{vitess_profile_binary}})
1616
when: vitess_profile_binary is defined

ansible/roles/profile/tasks/stop.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)