An open API service indexing awesome lists of open source software.

https://github.com/dgibbs64/ansible-role-amazon_ssm_agent


https://github.com/dgibbs64/ansible-role-amazon_ssm_agent

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# amazon_ssm_agent

An [Ansible](https://www.ansible.com) role that ensures Amazon SSM Agent is installed on EC2 instances.


Codacy grade
GitHub Workflow Status
GitHub tag (latest by date)
MIT License

## About

Amazon SSM Agent is a management agent that can be installed on EC2 instances to enable AWS Systems Manager capabilities. This role will install or remove the Amazon SSM Agent.

> note: For Ubuntu AMI's, the Amazon SSM Agent is already installed by default. However this role will still ensure the agent is installed and running.

This role can only check if Amazon SSM Agent is installed and install it if not. Update functionality is handled by AWS Systems Manager. Amazon SSM Agent can be auto updated by enabling *Auto update SSM Agent* in `AWS Systems Manager > Fleet Manager > Settings > Agent auto update > Auto update SSM Agent`. Full guide found here.

This role uses amazon.aws.ec2_metadata_facts. Please ensure the EC2 metadata endpoint is setup on your control node.

## Requirements

Requires an AWS account to use the Amazon SSM features.

### Supported Distros

- AlmaLinux >= 8
- AmazonLinux 2023
- CentOS >= 8
- Debian >= 10
- Fedora >= 39
- OracleLinux >= 8
- Redhat Enterprise Linux >= 8
- Rocky Linux >= 8
- Ubuntu >= 20.04

## Role Variables

By default, this role will install the Amazon SSM Agent if not already installed.

To customize the configuration, you can set the following variables:

```yaml
# Agent state present|absent
amazon_ssm_agent_state: "present"
# Force install of SSM Agent
amazon_ssm_agent_force_install: false
```

## Dependencies

```yaml
community.general
amazon.aws
```

## Example Playbook

```yaml
---
- name: Netdata
hosts: all
roles:
- dgibbs64.amazon_ssm_agent
```

## License

MIT

## Author Information

- [Daniel Gibbs](https://danielgibbs.co.uk)