I have:
- a ansilbe tower set up (aws EC2).
- a ubuntu server (aws ec2).
I have created a inventory group of main in tower and am attempting to add the ubuntu server as a host.
---
- name: ubuntu
add_host:
name: "192.168.1.1"
groups: main
based on the documentation I have written the above for the variables section of the create hosts interface however i get the message invalid yaml.
any advice on where i have gone wrong?