On 31. mars 2017 23:39, Andrew Meyer wrote:
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....
This is not a correct playbook file, I suggest reading this https://docs.ansible.com/ansible/playbooks_intro.html And you task should be - name: test asa_command: -- Kai Stian Olstad -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9c0d91f6-c85b-ab41-8db5-37f4e4fcc2f2%40olstad.com. For more options, visit https://groups.google.com/d/optout.
