Trying to use this Ansible community.aws.aws_ssm module but keep getting "ERROR! A worker was found in a dead state"
Could not find any solution for this case, only outdated issues with Ansible throwing out of memory errors.
Playbook
- name: Install a Nginx Package
hosts: all
vars:
profile: default
ansible_connection: aws_ssm
ansible_aws_ssm_bucket_name: fleetup.logs
ansible_aws_ssm_region: us-west-2
tasks:
- name: Install package
raw: yum install -y awscli
Below is output from cli.
TASK [Gathering Facts] *****************************************************************************************************************************************************************************************************
task path: /Users/rerser/Documents/VSCode_Worspace/Hillel_devops/ansible/test_ssm.yml:1
43452 1641248909.66836: sending task start callback
43452 1641248909.66837: entering _queue_task() for i-0284369df994a8ec5/gather_facts
43452 1641248909.66838: Creating lock for gather_facts
43452 1641248909.67034: worker is 1 (out of 1 available)
43452 1641248909.67079: exiting _queue_task() for i-0284369df994a8ec5/gather_facts
43452 1641248909.67146: done queuing things up, now waiting for results queue to drain
43452 1641248909.67148: waiting for pending results...
43461 1641248909.67400: running TaskExecutor() for i-0284369df994a8ec5/TASK: Gathering Facts
43461 1641248909.67457: in run() - task c25454ab-7f62-17b5-f68b-00000000000c
43461 1641248909.67472: variable 'ansible_search_path' from source: unknown
43461 1641248909.67517: calling self._execute()
43461 1641248909.67550: variable 'ansible_connection' from source: play vars
43461 1641248909.67557: variable 'omit' from source: magic vars
43461 1641248909.67646: variable 'omit' from source: magic vars
43461 1641248909.67662: variable 'omit' from source: magic vars
43461 1641248909.67681: variable 'ansible_connection' from source: play vars
43461 1641248909.67683: variable 'ansible_connection' from source: play vars
43461 1641248909.67707: trying /Users/rerser/Library/Python/3.8/lib/python/site-packages/ansible/plugins/connection
redirecting (type: connection) ansible.builtin.aws_ssm to community.aws.aws_ssm
43461 1641248909.70869: Loaded config def from plugin (connection/ansible_collections.community.aws.plugins.connection.aws_ssm)
43461 1641248909.70879: Loading Connection 'ansible_collections.community.aws.plugins.connection.aws_ssm' from /Users/rerser/.ansible/collections/ansible_collections/community/aws/plugins/connection/aws_ssm.py
43461 1641248909.70900: trying /Users/rerser/Library/Python/3.8/lib/python/site-packages/ansible/plugins/shell
43461 1641248909.70939: Loading ShellModule 'sh' from /Users/rerser/Library/Python/3.8/lib/python/site-packages/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False)
43461 1641248909.70993: Loading ShellModule 'sh' from /Users/rerser/Library/Python/3.8/lib/python/site-packages/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False)
43461 1641248909.71013: variable 'ansible_aws_ssm_region' from source: play vars
43461 1641248909.71016: variable 'ansible_aws_ssm_bucket_name' from source: play vars
43461 1641248909.71103: Loading ActionModule 'gather_facts' from /Users/rerser/Library/Python/3.8/lib/python/site-packages/ansible/plugins/action/gather_facts.py (found_in_cache=True, class_only=False)
43461 1641248909.71126: variable 'omit' from source: magic vars
43461 1641248909.71132: starting attempt loop
43461 1641248909.71133: running the handler
43461 1641248909.71149: variable 'ansible_facts' from source: unknown
43461 1641248909.71347: trying /Users/rerser/Library/Python/3.8/lib/python/site-packages/ansible/modules
43461 1641248909.71490: _low_level_execute_command(): starting
43461 1641248909.71502: _low_level_execute_command(): executing: echo ~ubuntu
<i-0284369df994a8ec5> ESTABLISH SSM CONNECTION TO: i-0284369df994a8ec5
43452 1641248909.90803: RUNNING CLEANUP
ERROR! A worker was found in a dead state
(venv) rerser@Sergiis-MacBook-Pro ansible %