tech:ansible_inventory_script_-_inventaire_dynamique_3

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

tech:ansible_inventory_script_-_inventaire_dynamique_3 [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech:ansible_inventory_script_-_inventaire_dynamique_3 [2025/06/02 15:26] (Version actuelle) Jean-Baptiste
Ligne 14: Ligne 14:
 ansible-inventory -i inventory.ini --list > inventory.json ansible-inventory -i inventory.ini --list > inventory.json
 </code> </code>
 +
  
 == INI vers YAML == INI vers YAML
Ligne 25: Ligne 26:
 == JSON vers YAML == JSON vers YAML
  
-<code python cat.py>+''cat.py'' 
 +<code python>
 #! /usr/bin/env python3 #! /usr/bin/env python3
  
Ligne 49: Ligne 51:
  
 Script de conversion json_to_ini.py Script de conversion json_to_ini.py
-<code python json_to_ini.py>+ 
 +''json_to_ini.py'' 
 +<code python>
 #! /usr/bin/env python3 #! /usr/bin/env python3
  
tech/ansible_inventory_script_-_inventaire_dynamique_3.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki