commit 9d22796658aa9bb1d1345cabfd238a5ad8aa7717 Author: Radar231 Date: Thu Nov 11 08:58:26 2021 -0500 initial checkin diff --git a/README.md b/README.md new file mode 100644 index 0000000..e2e6b0a --- /dev/null +++ b/README.md @@ -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 -e "monitorix_pkg=" monitorix.yml + + ie, + ansible-playbook -i 192.168.0.101, -e "monitorix_pkg=monitorix_3.13.1-izzy3_all.deb" monitorix.yml + diff --git a/monitorix.yml b/monitorix.yml new file mode 100644 index 0000000..c026d7f --- /dev/null +++ b/monitorix.yml @@ -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 -e "monitorix_pkg=" 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