Add task to remove smartmontools of the VM
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
154e79c490
commit
078d141236
3 changed files with 23 additions and 3 deletions
|
@ -42,7 +42,7 @@
|
||||||
roles:
|
roles:
|
||||||
- prometheus
|
- prometheus
|
||||||
|
|
||||||
- hosts: prometheus-georgesand.adm.auro.re,prometheus-georgesand-fo.adm.auro.re
|
- hosts: prometheus-gs.adm.auro.re
|
||||||
vars:
|
vars:
|
||||||
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
|
prometheus_alertmanager: docker-ovh.adm.auro.re:9093
|
||||||
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
|
snmp_unifi_password: "{{ vault_snmp_unifi_password }}"
|
||||||
|
@ -50,9 +50,9 @@
|
||||||
# Prometheus targets.json
|
# Prometheus targets.json
|
||||||
prometheus_targets:
|
prometheus_targets:
|
||||||
- targets: |
|
- targets: |
|
||||||
{{ groups['georgesand_pve'] + groups['georgesand_vm'] | list | sort }}
|
{{ groups['gs_pve'] + groups['gs_vm'] | list | sort }}
|
||||||
prometheus_unifi_snmp_targets:
|
prometheus_unifi_snmp_targets:
|
||||||
- targets: "{{ groups['georgesand_unifi'] | list | sort }}"
|
- targets: "{{ groups['gs_unifi'] | list | sort }}"
|
||||||
roles:
|
roles:
|
||||||
- prometheus
|
- prometheus
|
||||||
|
|
||||||
|
|
|
@ -87,3 +87,18 @@
|
||||||
src: resolv.conf
|
src: resolv.conf
|
||||||
dest: /etc/resolv.conf
|
dest: /etc/resolv.conf
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
|
- name: Remove smartmontols
|
||||||
|
apt:
|
||||||
|
pkg: smartmontools
|
||||||
|
state: absent
|
||||||
|
autoremove: yes
|
||||||
|
when: ansible_system_vendor == "QEMU"
|
||||||
|
|
||||||
|
- name: Remove useless packages from the cache
|
||||||
|
apt:
|
||||||
|
autoclean: yes
|
||||||
|
|
||||||
|
- name: Remove dependencies that are no longer required
|
||||||
|
apt:
|
||||||
|
autoremove: yes
|
||||||
|
|
5
test.sh
Executable file
5
test.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
for ip in `cat hosts|grep pacaterie.adm.auro.re`; do
|
||||||
|
ssh-copy-id $ip
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in a new issue