---
|
# Implement your Workload deployment tasks here
|
- fail:
|
msg: User count end({{ user_count_end }}) < user count start ({{ user_count_start }})
|
when: user_count_end|int < user_count_start|int
|
|
- name: Setting up workload for users
|
debug:
|
msg: "Setting up workload for {{ num_users }} users"
|
|
- include_tasks: per_user_pre_operator_workload.yml
|
loop: "{{ range(user_count_start|int, user_count_end|int)|list }}"
|
loop_control:
|
loop_var: user_num
|
|
- include_tasks: per_user_operator_workload.yml
|
loop: "{{ range(user_count_start|int, user_count_end|int)|list }}"
|
loop_control:
|
loop_var: user_num
|
|
- include_tasks: per_user_post_operator_workload.yml
|
loop: "{{ range(user_count_start|int, user_count_end|int)|list }}"
|
loop_control:
|
loop_var: user_num
|
|
# Leave this as the last task in the playbook.
|
- name: workload tasks complete
|
debug:
|
msg: "Workload Tasks completed successfully."
|
when: not silent|bool
|