Your debug task is wrongly indented

On Thu, 7 Nov 2019 at 20:08, Steven Williams <[email protected]>
wrote:

> root@jmpnet:/etc/ansible# ansible-playbook test-asa.yml
> ERROR! 'debug' is not a valid attribute for a Play
>
> The error appears to be in '/etc/ansible/test-asa.yml': line 15, column 3,
> but may
> be elsewhere in the file depending on the exact syntax problem.
>
> The offending line appears to be:
>
>
> - debug: var=output.stdout_lines
>   ^ here
>
>
> ==============================
>
>
> - name: show version for ASA
>   hosts: TEST_ASA
>   gather_facts: false
>   connection: network_cli
>   user: test
>   tasks:
>          - name: Show version
>            asa_command:
>                    commands:
>                            - show version
>            register: output
>
> - debug: var=output.stdout_lines
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/bdf60d96-d88b-410b-83fe-5f1964f2b63c%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/bdf60d96-d88b-410b-83fe-5f1964f2b63c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwMx2o%2BKzn4DqiBbOigsanBA1gLinfiRrsSGmacvCJjAog%40mail.gmail.com.

Reply via email to