- hosts: CSRs
 gather_facts: false
 connection: local

  tasks:
  - name: test show run
    ios_config:
      authorize: yes
      lines:
        - do show run


I have the above simple show_run.yaml ansible playbook. While i run this 
playbook I am getting this error:
~/central-orchestration/csr-instance-ansible-poc > ansible-playbook 
show_run.yaml
ERROR! conflicting action statements: ios_config, name

The error appears to have been in 
'/Users/vishlpa4/central-orchestration/csr-instance-ansible-poc/show_run.yaml': 
line 6, column 6, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  tasks:
   - name: test show run
     ^ here


The error appears to have been in 
'/Users/vishlpa4/central-orchestration/csr-instance-ansible-poc/show_run.yaml': 
line 6, column 6, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  tasks:
   - name: test show run
     ^ here

exception type: <class 'ansible.errors.AnsibleParserError'>
exception: conflicting action statements: ios_config, name

The error appears to have been in 
'/Users/vishlpa4/central-orchestration/csr-instance-ansible-poc/show_run.yaml': 
line 6, column 6, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  tasks:
   - name: test show run
     ^ here

~/central-orchestration/csr-instance-ansible-poc >




Am I missing something here ?


Thanks
Vishlesh

-- 
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/0ac6be6d-5361-4674-b801-6f448f3a004c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to