diff --git a/chatty_block.yml b/chatty_block.yml new file mode 100644 index 0000000000..c67e857eb9 --- /dev/null +++ b/chatty_block.yml @@ -0,0 +1,8 @@ +--- +- name: send one message + ansible.builtin.debug: + msg: "{{ chatty_message | default('This is test message') }}" + +- name: Pause for {{ pause_time_min | default('1') }} min. + ansible.builtin.pause: + minutes: "{{ pause_time_min | default('1') }}" diff --git a/chatty_multiple_tasks.yml b/chatty_multiple_tasks.yml new file mode 100644 index 0000000000..25c8d38561 --- /dev/null +++ b/chatty_multiple_tasks.yml @@ -0,0 +1,13 @@ +--- +- hosts: all + gather_facts: false + + vars: + num_messages: 50 + + tasks: + + - name: Running {{ num_messages }} tasks + with_sequence: 'count={{ num_messages }}' + ansible.builtin.include_tasks: + file: single_task.yml diff --git a/chatty_payload_block.yml b/chatty_payload_block.yml new file mode 100644 index 0000000000..541ff57e48 --- /dev/null +++ b/chatty_payload_block.yml @@ -0,0 +1,15 @@ +--- +- hosts: all + gather_facts: false + + vars: + message_size: 1024 #message size in Bytes[1KB] + num_messages: 10 #number of messages + chatty_message: "{{ '$' * message_size|int }}" + + tasks: + + - name: Running {{ num_messages }} tasks + with_sequence: 'count={{ num_messages }}' + ansible.builtin.include_tasks: + file: single_payload_task.yml diff --git a/chatty_sleep_tasks.yml b/chatty_sleep_tasks.yml new file mode 100644 index 0000000000..b1a1a8faaa --- /dev/null +++ b/chatty_sleep_tasks.yml @@ -0,0 +1,14 @@ +--- +- hosts: all + gather_facts: no + vars: + message_size: 1048576 # message size in Bytes[1MB] + num_messages: 5 # number of messages + chatty_message: "{{ '$' * message_size|int }}" + pause_time_min: 65 + + tasks: + + - name: Run a task an sleep + include_tasks: chatty_block.yml + with_sequence: "count={{ num_messages }}" \ No newline at end of file diff --git a/single_payload_task.yml b/single_payload_task.yml new file mode 100644 index 0000000000..4c30187828 --- /dev/null +++ b/single_payload_task.yml @@ -0,0 +1,4 @@ +--- +- name: Send single debug message + ansible.builtin.debug: + msg: "{{ chatty_message | default('This is test message') }}" diff --git a/single_task.yml b/single_task.yml new file mode 100644 index 0000000000..1d504f66fb --- /dev/null +++ b/single_task.yml @@ -0,0 +1,4 @@ +--- +- name: Running task number {{ item }} + ansible.builtin.debug: + msg: "This is a debug message for task number : {{ item }}"