On Thursday, 22 March 2018 20.22.02 CET Armstrong Soo wrote:
> Hi all, I am testing a very simple playbook for netconf and I didn't get 
> very far. What did I do wrong?
> 
> 
> ERROR! 'netconf_config' is not a valid attribute for a Play
> 
> The error appears to have been in '/home/as2618/FSL/main.yaml': line 1, 
> column 3, but may
> be elsewhere in the file depending on the exact syntax problem.
> 
> The offending line appears to be:
> 
> 
> - name: Add Netconf User
>   ^ here
> 
> This is the content of the playbook:
> 
> xxxxx@ansi0003vm001:~/FSL$ cat -T main.yaml
> - name: Add Netconf User
>   netconf_config:
>     host: 192.168.0.100
>     username: root
>     password: hellothere
>     xml: |
>           <?xml version="1.0" encoding="UTF-8"?>
>           <hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
>                <capabilities>
>                         
> <capability>urn:ietf:params:netconf:base:1.0</capability>
>                         
> <capability>urn:com:dingdong:ebase:1.1.0</capability>
>                </capabilities>
>           </hello>
>           ]]>]]>

That is not a playbook, I suggest reading the documentation and a good start is 
this one
https://docs.ansible.com/ansible/latest/playbooks_intro.html

-- 
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/1900306.PCMuUXU3K0%40x1.
For more options, visit https://groups.google.com/d/optout.

Reply via email to