mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 00:18:32 +01:00
29 lines
689 B
YAML
29 lines
689 B
YAML
- name: Install Dependencies
|
|
apt:
|
|
name:
|
|
- python3-nagiosplugin
|
|
- nagios-plugins-contrib
|
|
state: present
|
|
|
|
- name: Clone Passive Monitoring
|
|
git:
|
|
repo: https://github.com/FAUSheppy/icinga-passive-checks-monitoring
|
|
dest: "/etc/monitoring/"
|
|
version: master
|
|
|
|
- name: Clone Monitoring Tools
|
|
git:
|
|
repo: https://github.com/FAUSheppy/monitoring-tools
|
|
dest: "/etc/monitoring-tools/"
|
|
version: master
|
|
|
|
- name: Check if PostgreSQL is installed
|
|
command: dpkg -s postgresql
|
|
register: postgresql_installed
|
|
ignore_errors: true
|
|
changed_when: False
|
|
|
|
- name: Set has_postgres variable
|
|
set_fact:
|
|
has_postgres: "{{ postgresql_installed.rc == 0 }}"
|