Guillaume Coré
2019-09-13 3117105729aefdbaa95fa936c5566e96a84e38c7
commit | author | age
4783f2 1 ---
LL 2 # Implement your Workload deployment tasks here
3 - fail:
4     msg: User count end({{ user_count_end }}) < user count start ({{ user_count_start }})
5   when: user_count_end|int < user_count_start|int
6
7 - name: Setting up workload for user
8   debug:
852e52 9     msg: "Setting up workload for {{ num_users }} users"
4783f2 10
2165f8 11 - include_tasks: per_user_pre_operator_workload.yml
WB 12   loop: "{{ range(user_count_start|int, user_count_end|int)|list }}"
13   loop_control:
14     loop_var: user_num
15
16 - include_tasks: per_user_operator_workload.yml
17   loop: "{{ range(user_count_start|int, user_count_end|int)|list }}"
18   loop_control:
19     loop_var: user_num
20
21 - include_tasks: per_user_post_operator_workload.yml
4783f2 22   loop: "{{ range(user_count_start|int, user_count_end|int)|list }}"
LL 23   loop_control:
24     loop_var: user_num
25
26 # Leave this as the last task in the playbook.
27 - name: workload tasks complete
28   debug:
29     msg: "Workload Tasks completed successfully."
30   when: not silent|bool