From 41a34d650cee8e4ca30e8e6119a60e54b5f9e2fd Mon Sep 17 00:00:00 2001 From: Avi Layani Date: Mon, 25 Mar 2024 09:40:37 +0200 Subject: [PATCH 01/12] adding collentions requierments Signed-off-by: Avi Layani --- collections/requierments.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 collections/requierments.yml diff --git a/collections/requierments.yml b/collections/requierments.yml new file mode 100644 index 0000000000..61f310e7a7 --- /dev/null +++ b/collections/requierments.yml @@ -0,0 +1,6 @@ +--- +collections: + - name: community.general + - name: ansible.posix + - name: awx.awx + From aac1071091d73f2f1c34db2d0d512e850bc8779c Mon Sep 17 00:00:00 2001 From: Avi Layani Date: Mon, 25 Mar 2024 15:17:36 +0200 Subject: [PATCH 02/12] updating the requierments for debugging Signed-off-by: Avi Layani --- collections/requierments.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/collections/requierments.yml b/collections/requierments.yml index 61f310e7a7..b6ae8dbaa5 100644 --- a/collections/requierments.yml +++ b/collections/requierments.yml @@ -1,6 +1,8 @@ --- collections: - name: community.general - - name: ansible.posix - - name: awx.awx + source: https://galaxy.ansible.com + + #- name: ansible.posix + #- name: awx.awx From 46ad4c198149c78833ca139d5e6af8f9b1a037d4 Mon Sep 17 00:00:00 2001 From: Avi Layani Date: Mon, 25 Mar 2024 15:48:33 +0200 Subject: [PATCH 03/12] rename the requirements file Signed-off-by: Avi Layani --- collections/{requierments.yml => requirements.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename collections/{requierments.yml => requirements.yml} (100%) diff --git a/collections/requierments.yml b/collections/requirements.yml similarity index 100% rename from collections/requierments.yml rename to collections/requirements.yml From cc13950d3f7fbf6a49893ef2093b402c3a373f28 Mon Sep 17 00:00:00 2001 From: Avi Layani Date: Mon, 1 Apr 2024 11:09:09 +0300 Subject: [PATCH 04/12] add new collection - should failed Signed-off-by: Avi Layani --- collections/requirements.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/collections/requirements.yml b/collections/requirements.yml index b6ae8dbaa5..139d52a2dc 100644 --- a/collections/requirements.yml +++ b/collections/requirements.yml @@ -1,8 +1,6 @@ --- collections: - name: community.general - source: https://galaxy.ansible.com - - #- name: ansible.posix - #- name: awx.awx - + - name: ansible.posix + - name: awx.awx + - name: redhat_cop.aap_utilities From a0d3d135f4a7b47ec2d442d7a64a900b193f7195 Mon Sep 17 00:00:00 2001 From: Avi Layani Date: Mon, 1 Apr 2024 11:11:56 +0300 Subject: [PATCH 05/12] update the collections Signed-off-by: Avi Layani --- collections/requirements.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/collections/requirements.yml b/collections/requirements.yml index 139d52a2dc..9c90f42a10 100644 --- a/collections/requirements.yml +++ b/collections/requirements.yml @@ -3,4 +3,3 @@ collections: - name: community.general - name: ansible.posix - name: awx.awx - - name: redhat_cop.aap_utilities From a833c5cab0a65b2fdd0b2be6f3ee26774870cddc Mon Sep 17 00:00:00 2001 From: Avi Layani Date: Thu, 11 Apr 2024 10:38:46 +0300 Subject: [PATCH 06/12] Adding multiple tasks test Signed-off-by: Avi Layani --- chatty_multiple_tasks.yml | 13 +++++++++++++ single_task.yml | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 chatty_multiple_tasks.yml create mode 100644 single_task.yml 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/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 }}" From 643c61d89ea3d0e58e16d12aaba29027feb4f439 Mon Sep 17 00:00:00 2001 From: Avi Layani Date: Thu, 18 Apr 2024 11:48:22 +0300 Subject: [PATCH 07/12] remove the requirements.yml file Signed-off-by: Avi Layani --- collections/requirements.yml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 collections/requirements.yml diff --git a/collections/requirements.yml b/collections/requirements.yml deleted file mode 100644 index 9c90f42a10..0000000000 --- a/collections/requirements.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -collections: - - name: community.general - - name: ansible.posix - - name: awx.awx From 27e071cdcafbc14c095ccc4e6e7d2da3c0b52a4b Mon Sep 17 00:00:00 2001 From: Avi Layani Date: Thu, 2 May 2024 15:28:56 +0300 Subject: [PATCH 08/12] adding block loop for the chatty task playbook Signed-off-by: Avi Layani --- chatty_block.yml | 8 ++++++++ chatty_sleep_tasks.yml | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 chatty_block.yml create mode 100644 chatty_sleep_tasks.yml 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_sleep_tasks.yml b/chatty_sleep_tasks.yml new file mode 100644 index 0000000000..208508c091 --- /dev/null +++ b/chatty_sleep_tasks.yml @@ -0,0 +1,13 @@ +--- +- hosts: localhost + gather_facts: no + vars: + message_size: 1024*1024 # 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 From bf11fe57a4237e1841f820d7539e4f66f2041c9b Mon Sep 17 00:00:00 2001 From: Avi Layani Date: Thu, 2 May 2024 16:25:43 +0300 Subject: [PATCH 09/12] fix the message size to 1 MB Signed-off-by: Avi Layani --- chatty_sleep_tasks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatty_sleep_tasks.yml b/chatty_sleep_tasks.yml index 208508c091..0d3a67e07a 100644 --- a/chatty_sleep_tasks.yml +++ b/chatty_sleep_tasks.yml @@ -2,7 +2,7 @@ - hosts: localhost gather_facts: no vars: - message_size: 1024*1024 # message size in Bytes[1MB] + message_size: 1048576 message size in Bytes[1MB] num_messages: 5 # number of messages chatty_message: "{{ '$' * message_size|int }}" pause_time_min: 65 From 3962221c5826e4abd66e28a0a0dd7ba8e265eda3 Mon Sep 17 00:00:00 2001 From: Avi Layani Date: Thu, 2 May 2024 16:42:15 +0300 Subject: [PATCH 10/12] fix the message size, and run against all hosts in the inventory Signed-off-by: Avi Layani --- chatty_sleep_tasks.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chatty_sleep_tasks.yml b/chatty_sleep_tasks.yml index 0d3a67e07a..b1a1a8faaa 100644 --- a/chatty_sleep_tasks.yml +++ b/chatty_sleep_tasks.yml @@ -1,13 +1,14 @@ --- -- hosts: localhost +- hosts: all gather_facts: no vars: - message_size: 1048576 message size in Bytes[1MB] + 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 From bfb33c7db280c4f02c40db82065079d934528023 Mon Sep 17 00:00:00 2001 From: Avi Layani Date: Mon, 6 May 2024 16:49:05 +0300 Subject: [PATCH 11/12] adding chatty_pyload multiple tasks Signed-off-by: Avi Layani --- chatty_payload_block.yml | 15 +++++++++++++++ single_payload_task.yml | 4 ++++ 2 files changed, 19 insertions(+) create mode 100644 chatty_payload_block.yml create mode 100644 single_payload_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/single_payload_task.yml b/single_payload_task.yml new file mode 100644 index 0000000000..f302515e13 --- /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') }}" From a12fac8a31233ceebf113e6c534c448d9af2c678 Mon Sep 17 00:00:00 2001 From: Avi Layani Date: Mon, 6 May 2024 17:48:10 +0300 Subject: [PATCH 12/12] fix the task Signed-off-by: Avi Layani --- single_payload_task.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/single_payload_task.yml b/single_payload_task.yml index f302515e13..4c30187828 100644 --- a/single_payload_task.yml +++ b/single_payload_task.yml @@ -1,4 +1,4 @@ --- - name: Send single debug message -- ansible.builtin.debug: + ansible.builtin.debug: msg: "{{ chatty_message | default('This is test message') }}"