move to yaml inventory

This commit is contained in:
Gabriel Augendre 2024-10-11 11:18:39 +02:00
parent 813aa28dd1
commit 2c9cfa104d
3 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,3 @@
[env] [env]
ANSIBLE_INVENTORY = "{{config_root}}/inventory.ini" ANSIBLE_INVENTORY = "{{config_root}}/inventory.yaml"
ANSIBLE_VAULT_PASSWORD_FILE = "{{config_root}}/vault.pass" ANSIBLE_VAULT_PASSWORD_FILE = "{{config_root}}/vault.pass"

View file

@ -1,2 +0,0 @@
[servers]
ubuntu ansible_host=192.168.0.6 ansible_python_interpreter=auto_silent

6
inventory.yaml Normal file
View file

@ -0,0 +1,6 @@
---
servers:
hosts:
ubuntu:
ansible_host: 192.168.0.6
ansible_python_interpreter: auto_silent