Running Ansible with AWS System Manager
Posted on 2022/12/12 in Cloud • Tagged with Clous, AWS, SSM, Ansible
Ansible is a fantastic tool to automate tasks and manage fleets of servers
Amazon SSM, or Systems Manager, also offers tools to manage your fleet of servers. One of the tools they offer is Session Manager, which allows you to run an interactive shell without having to open a TCP port to the world or dealing with SSH keys.
Usualy, ansible uses SSH to connect and send payloads to the managed servers, if you're using only SSM to mange your instances, how can Ansible connect to them? Well, by using SSM itself to communicate and an S3 bucket to store the payload.
Debian/Ubuntu users beware
System Manager uses …