# 'netconf\_config' is not a valid attribute for a Play

**URL:** <https://forum.ansible.com/t/netconf-config-is-not-a-valid-attribute-for-a-play/27083>\
**Category:** Ansible Project\
**Created:** [March 22, 2018, 7:22pm UTC](https://forum.ansible.com/t/netconf-config-is-not-a-valid-attribute-for-a-play/27083 "2018-03-22T19:22:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Armstrong\_Soo](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Armstrong\_Soo](https://forum.ansible.com/u/Armstrong_Soo)\
**Post date:** [March 22, 2018, 7:22pm UTC](https://forum.ansible.com/t/netconf-config-is-not-a-valid-attribute-for-a-play/27083/1 "2018-03-22T19:22:02Z")

</div>

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"?\> urn:ietf:params:netconf:base:1.0 urn:com:dingdong:ebase:1.1.0 ]]\>]]\>

Thanks!

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [March 22, 2018, 7:32pm UTC](https://forum.ansible.com/t/netconf-config-is-not-a-valid-attribute-for-a-play/27083/2 "2018-03-22T19:32:12Z")

</div>

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](https://docs.ansible.com/ansible/latest/playbooks_intro.html)

---

<div class="post-metadata">

**Author:** ![Armstrong\_Soo](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Armstrong\_Soo](https://forum.ansible.com/u/Armstrong_Soo)\
**Post date:** [March 22, 2018, 9:00pm UTC](https://forum.ansible.com/t/netconf-config-is-not-a-valid-attribute-for-a-play/27083/3 "2018-03-22T21:00:52Z")

</div>

I thought I am following the example of [http://docs.ansible.com/ansible/latest/netconf\_config\_module.html](http://docs.ansible.com/ansible/latest/netconf_config_module.html).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [March 22, 2018, 9:05pm UTC](https://forum.ansible.com/t/netconf-config-is-not-a-valid-attribute-for-a-play/27083/4 "2018-03-22T21:05:07Z")

</div>

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](http://docs.ansible.com/ansible/latest/intro.html)

---

<div class="post-metadata">

**Author:** ![Armstrong\_Soo](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Armstrong\_Soo](https://forum.ansible.com/u/Armstrong_Soo)\
**Post date:** [March 22, 2018, 9:59pm UTC](https://forum.ansible.com/t/netconf-config-is-not-a-valid-attribute-for-a-play/27083/5 "2018-03-22T21:59:57Z")

</div>

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

xxxxx@ansi0003vm001:~/FSL$ cat -T main.yaml
