Closed gxvigo closed 6 months ago
Thanks for taking the time to open this issue.
This looks like a duplicate of #1756 please try upgrading to community.aws 7.1.0 or later.
Thank you for your prompt answer. I updated the amazon.aws collection
$ ansible-galaxy collection install amazon.aws --force
$ ansible-galaxy collection list
/home/ec2-user/.ansible/collections/ansible_collections
Collection Version
----------------------------- -------
amazon.aws 7.3.0
/home/ec2-user/.local/lib/python3.9/site-packages/ansible_collections
Collection Version
----------------------------- -------
amazon.aws 7.3.0
ansible.netcommon 5.3.0
ansible.posix 1.5.4
ansible.utils 2.12.0
But I see the same behavior.
...
<i-03b08f4a82658ba99> CLOSING SSM CONNECTION TO: i-03b08f4a82658ba99
<i-03b08f4a82658ba99> ESTABLISH SSM CONNECTION TO: i-03b08f4a82658ba99
<i-03b08f4a82658ba99> EXEC: curl -o '/AnsiballZ_setup.py' 'https://s3.ap-southeast-2.amazonaws.com/ansible-20240212/i-03b08f4a82658ba99/%1B%5B%3F2004h%1B%5B%3F2004l/AnsiballZ_setup.py?X-Amz-Algorithm=AWS4-HM
...
Actually, my bad, I did update the amazon.aws and not community.aws. After updating community.aws I don't see the same behavior anymore. I have other errors... but that's for me to spend more time investigating.
$ ansible-galaxy collection install community.aws --force
$ ansible-galaxy collection list
/home/ec2-user/.ansible/collections/ansible_collections
Collection Version
----------------------------- -------
amazon.aws 7.3.0
community.aws 7.1.0
/home/ec2-user/.local/lib/python3.9/site-packages/ansible_collections
Collection Version
----------------------------- -------
amazon.aws 7.3.0
ansible.netcommon 5.3.0
Now it writes to a temporary folder:
<i-03b08f4a82658ba99> EXEC: curl -o '/tmp/ansible-tmp-1707937573.1657295-3126-193316081225605/AnsiballZ_setup.py'
Closing as duplicate
Summary
Hello, I have a playbook (see below) where I just run a ping in a remote machine.
My hosts file just contains 1 remote server:
When I run the playbook, the remote server try to save the object from S3 into /, the user has no permission and the command fails:
<i-03b08f4a82658ba99> EXEC: curl -o '/AnsiballZ_setup.py' 'https://s3.ap-southeast-2.amazonaws.com/ansible-20240212/i-03b08f4a82658ba99/%1B%5B%3F2004h%1B%5B%3F2004l/AnsiballZ
... ...fatal: [my-instance]: FAILED! => { "msg": "failed to transfer file to /home/ec2-user/.ansible/tmp/ansible-local-66503y5171c4/tmp5xmirp9u \u001b[?2004h\u001b[?2004l/AnsiballZ_setup.py:\n\u001b[?2004h\u001b[?2004l\r\r\r\n % Total % Received % Xferd Average Speed Time Time Time Current\r\r\n
The playbook has the temp directory, but it seems it's not used by curlIssue Type
Bug Report
Component Name
aws_ssm
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
Amazon Linux 2023
Steps to Reproduce
Expected Results
No errors from the playbook run
Actual Results
Code of Conduct