Guillaume Coré
2019-09-13 3117105729aefdbaa95fa936c5566e96a84e38c7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
# 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