Skip to content

Schoolrunner/ansible-role-aws-cloudwatch-logs-agent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Role Name

Installs AWS CloudWatch Log Agent

Requirements

Requires ec2_facts.

Role Variables

List of logs with the following keys

Name Description Required
file Full path to log file Yes
format Datetime format No
group_name CloudWatch Log Group Yes

Dependencies

This role has no dependencies.

Example Playbook

- hosts: servers
  vars:
    logs:
      - file: /var/log/auth.log
        format: "%b %d %H:%M:%S"
        group_name: "auth"
      - file: /home/ubuntu/.bash_history
        group_name: "bash_history"
  roles:
     - { role: dharrisio.aws-cloudwatch-logs }

License

GPLv3

Author Information

Created by David Harris

About

Ansible role that installs the AWS CloudWatch Log Agent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published