Updating READMEs
This commit is contained in:
22
ansible/README.md
Normal file
22
ansible/README.md
Normal 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.
|
||||
Reference in New Issue
Block a user