I'm trying to implement a playbook to grab the external IP address at a few locations but it keeps giving me this same error:
The offending line appears to be:
remote_user: pi
tasks:
^ here
I've messed around with the indentation a few times, to no avail. Any help is appreciated, I'm new to this and still learning so there may be something I'm missing (playbook below)
- name: See if location is running on cradlepoint
hosts: cradlepoints
remote_user: pi
tasks:
- name: Grab External IP
dig:
- +short myip.opendns.com @resolver1.opendns.com
- name: Print a message
debug:
msg: 'Here Ya Go'