Skip to content

jvandermeulen/ansible-demo

Repository files navigation

ansible-demo

Ansible (Tower) demo for Conclusion Xforce

Requirements

  • Ansible server (preferably Ansible Tower)
  • inventory with groups called "nagios-server" and "nagios-clients"
  • Rhel 7.x server(s) minimal install with 'devops' user. ssh keys generated.

Serving as Nagios clients, make sure they are grouped in inventory to "nagios-clients":

  • Windows 2012 server(s) with Powershell >= 3.x
  • Rhel 7.x server(s) minimal install with 'devops' user ssh key authentication from ansible server

Example Playbook

---
# Playbook that configures Nagios XI server for centralized monitoring

- hosts: nagios-server
  become: true

  roles:
    - xi_php
    - xi_server_mariadb
    - xi_server_fullinstall
    - xi_aide

and

----
# Playbook that configures Nagios clients (either update or new install) with Nagios Cross Platform Agent (NCPA)
# 
# gather_facts: false
- hosts: nagios-clients-linux
  become: true
  roles:
    - nagiosrepo
    - ncpa_rhel

- hosts: nagios-clients-windows
  become: false
  roles:
    - ncpa_win

License

BSD

Author Information

Jørgen van der Meulen See http://xforce.conclusion.nl/

About

Ansible (Tower) demo for Conclusion Xforce

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published