How to fix this?

475 views
Skip to first unread message

Steven Williams

unread,
Nov 7, 2019, 2:08:44 PM11/7/19
to Ansible Project
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

Dick Visser

unread,
Nov 7, 2019, 2:14:12 PM11/7/19
to ansible...@googlegroups.com
Your debug task is wrongly indented 

--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/bdf60d96-d88b-410b-83fe-5f1964f2b63c%40googlegroups.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.
Reply all
Reply to author
Forward
0 new messages