I thought I am following the example of http://docs.ansible.com/ansible/latest/netconf_config_module.html.
On Thu, Mar 22, 2018 at 3:32 PM, Kai Stian Olstad < [email protected]> wrote: > 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 a topic in the > Google Groups "Ansible Project" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/ansible-project/4wR1vPdfQpM/unsubscribe. > To unsubscribe from this group and all its topics, 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. > -- 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/CAFs_6TgTO4xpP6Nr3bgRKcXPJbQS02T1EwcKq1C5fg4iO_eT8Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
