Thanks all. If I understand the Playbook Intro correctly, I changed the
playbook to

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>
        ]]>]]>

I get this message.

xxxxx@ansi0003vm001:~/FSL$ ansible-playbook main.yaml
 [WARNING]: Could not match supplied host pattern, ignoring: all

 [WARNING]: provided hosts list is empty, only localhost is available

ERROR! 'username' is not a valid attribute for a Play

The error appears to have been in '/home/xxxxx/FSL/main.yaml': line 2,
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


On Thu, Mar 22, 2018 at 5:05 PM, Brian Coca <[email protected]> wrote:

> Most module examples are 'specific tasks', they are supposed to be in
> the context of a play and playbook.
>
> If you are unclear on what that is, i suggest starting at
> http://docs.ansible.com/ansible/latest/intro.html
>
>
>
> --
> ----------
> Brian Coca
>
> --
> 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/CACVha7e5sskjvTaw4OKUDwmLjjvzQ
> 5oNGb_ZsPVxyQfbSxj8Rg%40mail.gmail.com.
> 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_6TiYDQ4Ed1Cw8e9R%2BtsxBXMY65%2BQDi23rGA7rheuMUaGQg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to