initial checkin

This commit is contained in:
Radar231 2021-11-11 08:57:49 -05:00
commit a3d51b377d
3 changed files with 43 additions and 0 deletions

6
README.md Normal file
View File

@ -0,0 +1,6 @@
# Ansible Role: monitorix
## Introduction
This role will install the monitorix system monitoring application.

9
meta/main.yml Normal file
View File

@ -0,0 +1,9 @@
galaxy_info:
author: radar231
license: license (GPL-2.0-or-later, MIT, etc)
min_ansible_version: 2.1
galaxy_tags: []
dependencies: []
# EOF

28
tasks/main.yml Normal file
View File

@ -0,0 +1,28 @@
---
###########################################################
#
# This role will install the monitorix system monitoring
# application.
#
# 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.
#
###########################################################
# tasks file for monitorix
- name: Retrieve the monitorix deb package from monitorix.org
get_url:
url: "https://www.monitorix.org/{{ monitorix_pkg }}"
dest: "/tmp/{{ monitorix_pkg }}"
mode: "0644"
owner: root
group: root
- name: Install monitorix deb package
apt:
deb: "/tmp/{{ monitorix_pkg }}"
state: present
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Pop!_OS" or ansible_distribution == "Linux Mint"
# EOF