japm94.ansible_role_aws_inspector

Ansible Role: AWS Inspector

Build Status

This role installs AWS Inspector (awsagent) on RedHat/CentOS or Debian/Ubuntu systems.

Requirements

There are no special requirements.

Role Variables

Here are the variables you can use, along with their default values (find them in defaults/main.yml):

This is the URL where the inspector installer will be downloaded, and the temporary folder where it will be saved.

  • awsagent_state: started
  • awsagent_enabled: true

These control the awsagent service; to have Amazon Inspector function properly, the awsagent must be running on any server that you want to examine.

There is also a handler, restart awsagent, to restart the agent if needed.

  • aws_inspector_role_test_mode: false

Change this to true if you're testing or using this role outside of an EC2 instance (like in CI or building a server in a different cloud environment).

You can also set up proxy configurations:

  • aws_inspector_proxy_enabled: false
  • aws_inspector_https_proxy: 127.0.0.1:8080
  • aws_inspector_http_proxy: 127.0.0.1:8080
  • aws_inspector_no_proxy: 169.254.169.254

Set aws_inspector_proxy_enabled to true and configure the other *_proxy variables to create a /etc/init.d/awsagent.env file for proxy support.

Dependencies

There are no dependencies.

Example Playbook

- hosts: ec2-instances
  roles:
    - geerlingguy.aws-inspector

License

MIT / BSD

Author Information

This role was created in 2017 by Jeff Geerling, who wrote Ansible for DevOps.

Informazioni sul progetto

AWS Inspector installation for Linux.

Installa
ansible-galaxy install japm94.ansible_role_aws_inspector
Licenza
mit
Download
584
Proprietario
Mission Critical Engineer