# getting error when trying to use asa\_command playbook

**URL:** <https://forum.ansible.com/t/getting-error-when-trying-to-use-asa-command-playbook/24118>\
**Category:** Ansible Project\
**Created:** [March 31, 2017, 9:39pm UTC](https://forum.ansible.com/t/getting-error-when-trying-to-use-asa-command-playbook/24118 "2017-03-31T21:39:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Meyer1](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@Andrew\_Meyer1](https://forum.ansible.com/u/Andrew_Meyer1)\
**Post date:** [March 31, 2017, 9:39pm UTC](https://forum.ansible.com/t/getting-error-when-trying-to-use-asa-command-playbook/24118/1 "2017-03-31T21:39:18Z")

</div>

When I run my playbook i’m getting the following:

ansible-playbook asa-config1-test.yml  
ERROR! Syntax Error while loading YAML.

The error appears to have been in ‘/home/andrew.meyer/playbooks/asa-config1-test.yml’: line 11, column 16, but may  
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

name: test

- asa\_command:  
^ here

cat asa-config1-test.yml  
vars:  
cli:  
host: 10.150.1.1  
username: “{{ username }}”  
password: “{{ password }}”  
authorize: yes  
auth\_pass: “{{ password }}”  
transport: cli

name: test

- asa\_command:  
commands:
- show version
- show run
- show memory  
provider: “{{ connections.ssh }}”  
context: system

Not sure why it is failing…

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [April 3, 2017, 5:43pm UTC](https://forum.ansible.com/t/getting-error-when-trying-to-use-asa-command-playbook/24118/2 "2017-04-03T17:43:16Z")

</div>

This is not a correct playbook file, I suggest reading this  
[https://docs.ansible.com/ansible/playbooks\_intro.html](https://docs.ansible.com/ansible/playbooks_intro.html)

And you task should be

- name: test  
&nbsp;&nbsp;&nbsp;asa\_command:
