initial checkin

This commit is contained in:
Radar231 2021-11-11 08:58:26 -05:00
commit 9d22796658
2 changed files with 51 additions and 0 deletions

19
README.md Normal file
View File

@ -0,0 +1,19 @@
# monitorix playbook
## Introduction
This is the top level playbook for the 'monitorix' role, and will install
monitorix on the target host.
The role requires that the 'monitorix_pkg" variable be set
This variable will hold the name of the desired package to install from
https://www.monitorix.org.
This playbook can be run using the following command line;
ansible-playbook -i <inventory file | IP,> -e "monitorix_pkg=<pkg_name>" monitorix.yml
ie,
ansible-playbook -i 192.168.0.101, -e "monitorix_pkg=monitorix_3.13.1-izzy3_all.deb" monitorix.yml

32
monitorix.yml Normal file
View File

@ -0,0 +1,32 @@
---
###########################################################################
#
# This is the top level playbook for the 'monitorix' role.
#
# This role will install monitorix on the target host.
#
###########################################################################
#
# This playbook can be run using the following command line;
#
# ansible-playbook -i <inventory file | IP,> -e "monitorix_pkg=<pkg_name>" monitorix.yml
#
# ie,
# ansible-playbook -i 192.168.0.101, -e "monitorix_pkg=monitorix_3.13.1-izzy3_all.deb" monitorix.yml
#
###########################################################################
- hosts: all
gather_facts: true
remote_user: root
roles:
- role: monitorix
vars:
# Version of monitorix to install is found on
# https://monitorix.org
#
# Current (20211111) version is monitorix_3.13.1-izzy3_all.deb1.28.2
monitorix_pkg: "monitorix_3.13.1-izzy3_all.deb"
# EOF