Updating READMEs

This commit is contained in:
Sebastien Laithier
2022-08-18 09:26:55 +02:00
parent bbef45b0a5
commit 28e061cd4c
2 changed files with 26 additions and 90 deletions

22
ansible/README.md Normal file
View File

@@ -0,0 +1,22 @@
## Name
Playbooks ansible utilisés pour récupérer les informations à intégrer dans l'updates-dashboard.
## Description
Les playbooks vont récuperer et afficher les informations suivantes sur les machines :
* Main.yml : hostname, distribution, version, update disponible, uptime.
* Packages.yml : hostname, paquet, version.
La liste des paquets à vérifier se trouve dans le playbook packages.yml.
Un callback particulier est utilisé pour afficher seulement les informations voulues pour construire le csv.
## Usage
* Ajouter callback_plugins=./hooks/ à ansible.cfg
```
export ANSIBLE_STDOUT_CALLBACK="update_dashboard"
DATE=$(date '+%Y-%m-%d')
ansible-playbook -i hosts-tst playbooks/main.yml > $DATE.csv
```
## Authors and acknowledgment
Show your appreciation to those who have contributed to the project.