Code Monkey home page Code Monkey logo

ansible-role-logwatch's Introduction

Logwatch Role for Ansible

Build Status

This role installs Logwatch which is an application that helps with simple log management by daily analyzing and reporting a short digest from activities taking place on your server.

Requirements

This role requires Ansible version 2.0 or higher and the Debian/Ubuntu/CentOS/RedHat platforms.

Role Variables

The variables that can be passed to this role and a brief description about them are as follows:

# Default output method for Logwatch reports
logwatch_output: "mail"

# Default output format for Logwatch reports
logwatch_format: "text"

# Default output encoding for Logwatch reports
logwatch_encode: "none"

# Default report email recipient
logwatch_admin_email: "root"

# Default report email sender
logwatch_sender_email: "Logwatch"

# The default time range for the report
logwatch_range: "yesterday"

# The default detail level for the report
logwatch_detail: "Med"

# The default system MTA
logwatch_mailer: "/usr/sbin/sendmail -t"

# The default directory where logs are found
logwatch_log_dir: '/var/log'

# The default directory where Logwatch keeps temp data
logwatch_tmp_dir: '/var/cache/logwatch'

Examples

  1. Install Logwatch with the defaults

    ---
    # This playbook installs Logwatch
    
    - name: Install logwatch to all nodes
      hosts: all
      roles:
        - logwatch
  2. Install Logwatch with custom settings

    ---
    # This playbook installs Logwatch
    
    - name: Install logwatch to all nodes
      hosts: all
      roles:
        - { role: logwatch,
            logwatch_detail: "Low",
            logwatch_format: "Html"
          }

Dependencies

None.

ansible-role-logwatch's People

Contributors

petemcw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.