Closed strophy closed 4 months ago
Temporary workaround is to call the role like this:
- name: Get deb architecture
ansible.builtin.command:
cmd: dpkg --print-architecture
register: deb_architecture
changed_when: deb_architecture.rc == 0
- name: Install SSM Agent
ansible.builtin.include_role:
name: amazon-ssm-agent
vars:
package_url: '{{ "https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/debian_" + deb_architecture.stdout + "/amazon-ssm-agent.deb" }}'
Thank you for the issue!
I plan to update cisagov/skeleton-ansible-role to handle ARM. I have a proof-of-concept PR that needs to be updated.
Once the changes are made to the skeleton repo they will flow down to all the cisagov/ansible-role-* repos (including this one) via cisagov/action-lineage.
cisagov/skeleton-ansible-role#174 has been updated and is out for review.
Resolved by #54.
🐛 Summary
Deploy fails against ARM-based devices due to hardcoded package URL, which naively assumes only
amd64
targets exist.To reproduce
Steps to reproduce the behavior:
msg: Wrong architecture 'amd64' -- Run dpkg --add-architecture to add it and update afterwards
Expected behavior
I expect the role to support the same set of architectures as SSM Agent itself
Any helpful log output or screenshots
Call the role like this: