Git Product home page Git Product logo

ansible-role-needrestart's Introduction

ansible-role-needrestart

Build Status Ansible Galaxy

Role to install & maintain needrestart

Role Variables

Defaults:

# Admins should be informed via email
needrestart_notifyd_disable_email: 0

# All other notifications should be disabled
needrestart_notifyd_disable_write_tty: 1
needrestart_notifyd_disable_needrestart_session: 1
needrestart_notifyd_disable_notify_send: 1

# Restart services (l)ist only, (i)nteractive or (a)utomatically.
needrestart_action: l

# Email which will be notified
needrestart_mail_address: $NR_USERNAME

# Services which should be ignored
needrestart_ignorelist: []

# Services blacklisted as regex
# Example:
# needrestart_blacklist_rc:
#   - cron\.service
needrestart_blacklist_rc: []

# Blacklist binaries as regex
# Example:
# needrestart_blacklist_bin:
#   - /opt/.*/java
needrestart_blacklist_bin: []

Download

Download latest release with ansible-galaxy

ansible-galaxy install systemli.needrestart

Example Playbook

- hosts: servers
  roles:
     - { role: systemli.needrestart }

Extended Variables Example

# Admins should be informed via email
needrestart_disable_email: 0 

## Restart services (l)ist only, (i)nteractive or (a)utomatically. 
needrestart_action: a

# Email which will be notified, when a service should be restarted 
needrestart_mail_address: [email protected]

# Ignore services below during automatic restart
needrestart_ignorelist:
  groupname:
     - servicename
  Databases:
     - mysql
     - mongodb
  Mail:
     - exim4
     - dovecot
  Webservers:
    - apache2

Testing & Development

Tests

Molecule, Docker and Github Actions is used for continous testing. On the local environment you can easily test the role with

molecule test 

This requires Molecule, Vagrant and python-vagrant to be installed.

License

GPLv3

Author Information

https://www.systemli.org

ansible-role-needrestart's People

Contributors

0x46616c6b avatar dependabot[bot] avatar doobry-systemli avatar neo-luddite avatar rlsit avatar t2d avatar xshadow avatar zerwes avatar

Stargazers

 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.