Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSM fails to install on latest Ubuntu 16.04 #14

Open
kevindixon opened this issue Sep 18, 2018 · 2 comments
Open

SSM fails to install on latest Ubuntu 16.04 #14

kevindixon opened this issue Sep 18, 2018 · 2 comments

Comments

@kevindixon
Copy link

The latest Ubuntu 16.04 releases on AWS have SSM agent pre-installed with SNAP. Currently, ansible-aws-ssm assumes deb installation, and as such attempts to use the role fail.

From https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-manual-agent-install.html#agent-install-ubuntu:

Beginning with instances created from Ubuntu Server 16.04 AMIs identified with 20180627, the SSM Agent is pre-installed using Snap packages. For example: ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-20180627

@kevindixon
Copy link
Author

fatal: [XX.XX.XX.XX]: FAILED! => {"changed": false, "msg": "dpkg --force-confdef --force-confold -i /tmp/ansible_5Bfuqq/amazon-ssm-agent.deb failed", "stderr": "dpkg: error processing archive /tmp/ansible_5Bfuqq/amazon-ssm-agent.deb (--install):\n subprocess new pre-installation script returned error exit status 1\nErrors were encountered while processing:\n /tmp/ansible_5Bfuqq/amazon-ssm-agent.deb\n", "stderr_lines": ["dpkg: error processing archive /tmp/ansible_5Bfuqq/amazon-ssm-agent.deb (--install):", " subprocess new pre-installation script returned error exit status 1", "Errors were encountered while processing:", " /tmp/ansible_5Bfuqq/amazon-ssm-agent.deb"], "stdout": "Selecting previously unselected package amazon-ssm-agent.\n(Reading database ... 59804 files and directories currently installed.)\nPreparing to unpack .../amazon-ssm-agent.deb ...\nPreparing for install\n-> Systemd detected\nactive\namazon-ssm-agent 2.2.619.0 295 stable/… aws classic\n-> Amazon-ssm-agent is installed in this instance by snap, please use snap to update or uninstall.\n", "stdout_lines": ["Selecting previously unselected package amazon-ssm-agent.", "(Reading database ... 59804 files and directories currently installed.)", "Preparing to unpack .../amazon-ssm-agent.deb ...", "Preparing for install", "-> Systemd detected", "active", "amazon-ssm-agent 2.2.619.0 295 stable/… aws classic", "-> Amazon-ssm-agent is installed in this instance by snap, please use snap to update or uninstall."]}

@poolski
Copy link

poolski commented Nov 27, 2018

Same here although using Chef rather than Ansible..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants