cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Commander Commander
Commander
  • 219 Views

Ansible Inventory Definition - INI & YAML

Well, here I am again, with my bi-monthly query 
pertaining to Ansible Inventory defintions.

Wanting the actual (vertical) syntax for each of the following:

--- canada: children: prod: hosts: srv[1:3]: dev: hosts: srv4

 

[canada] [canada:children] prod dev [prod] server[1:3] [dev] server4

 

 

By the way, which one is INI, and which one is YAML?

Trevor "Red Hat Evangelist" Chandler
Labels (2)
0 Kudos
2 Replies
Akyuz_Remzi
Flight Engineer
Flight Engineer
  • 193 Views

yaml:
--- canada: children: prod: hosts: srv[1:3]: dev: hosts: srv4

ini:

[canada] [canada:children] prod dev [prod] server[1:3] [dev] server4

 

0 Kudos
bonnevil
Starfighter Starfighter
Starfighter
  • 127 Views

@Trevor Out of curiosity, how do you keep having these without correct vertical formatting?  It sounds from your question like you get them that way, not that you're having problems entering them formatted correctly in the forum software?

0 Kudos
Join the discussion
You must log in to join this conversation.