Different layouts of a ansible inventory

Hello,

I try to solve the challenges of level 1 and I have to make a inventory file
On the net I found this solution

stapp02 ansible_host=172.16.238.11 ansible_ssh_pass=Am3ric@  ansible_user=steve

But on the net they say I can use a ini format or a yaml format and this one looks not like both formats.

How does the solution looks like in the good ini format and how does the solution looks like in good yaml format ?

Not sure, TBH. You can certainly use YAML for a text inventory; this is in the docs. And there are examples of supplying variables in a YAML inventory as well.. They’re just expressed as KEY: VALUE on separate lines, rather than KEY=VALUE on the same line as they do in the INI format.