title: Is it possible to write Ansible hosts/inventory files in YAML?
body: <p>In the best practices page, there is an example that uses <code>hosts.yml</code> for hosts files:</p>
  
  <p><a href="https://i.stack.imgur.com/avauq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/avauq.png" alt="YAML-based hosts file"></a></p>
  
  <p>In the docs, however, I can only find the INI syntax for writing hosts files.</p>
  
  <p>What is the syntax for the inventory files in YAML?</p>