41971/hey-trying-to-execute-a-playbook-but-get-the-following-error
Hey, you have a syntax error as mentioned in the error log. There should be a space between '-' and command and between '-' and hosts.
Replace it with the following:
- hosts: all tasks: - command: hostname
Check your python version. It should be ...READ MORE
Hey @Rajni, you can register the variable ...READ MORE
Ansible provides a way to specify this ...READ MORE
This can work out for you: - name: ...READ MORE
ERROR! Extraneous options or arguments READ MORE
Hey Ayaan, you could probably use this ...READ MORE
Of course this is possible @Kiara, you ...READ MORE
Hey @Harsh, use with_items to access the result ...READ MORE
Hey @Nishant, you can use the copy ...READ MORE
Try this: - hosts: web tasks: ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.