Junos Automation (Scripting)
Junos Automation (Scripting)

enable netconf with ansible question

‎09-12-2018 03:04 AM

I'm trying to write some ansible scripts to manage my juniper devices.
And first step is to enable netconfig.

So I'm using the basic task (as per doc):

 - name: Manage Juniper access
    hosts: juniper
      ansible_connection: network_cli
      ansible_network_os: junos
      - name: junos_netconf | enable netconf service on port 830
          netconf_port: 830
          state: present


After running the playbook the netconf config is correctly configured on the switch:

user@switch configure
Entering configuration mode
The configuration has been changed but not committed

user@switch# show | compare
[edit system services]
+    netconf {
+        ssh {
+            port 830;
+        }
+    }

but not commited!


I've searching through every doc and couldn't find anything saying a
separate commit is needed for this task.
I could do it myself of course in another task but this breaks the
beauty of Ansible...

The switch is an EX4300 running JUNOS 14.1X53-D46.7
But this an issue with the junos Ansible module.


Have I missed something?