---- name: Testing Juniper config module hosts: juniper roles: - Juniper.junos connection: local gather_facts: no
tasks: - name: Retrieving configuration juniper_junos_config: retrieve: 'committed' format: 'set' diff: false check: false commit: false dest_dir: /home/ansible user: "{{ user }}" passwd: "{{ passwd }}" port: "{{ port }}" register: response
- name: Print the result debug: var=responseuser@EX4200-1> show version fpc0:--------------------------------------------------------------------------Hostname: EX4200-1Model: ex4200-24tJUNOS Base OS boot [12.3R6.6]JUNOS Base OS Software Suite [12.3R6.6]JUNOS Kernel Software Suite [12.3R6.6]JUNOS Crypto Software Suite [12.3R6.6]JUNOS Online Documentation [12.3R6.6]JUNOS Enterprise Software Suite [12.3R6.6]JUNOS Packet Forwarding Engine Enterprise Software Suite [12.3R6.6]JUNOS Routing Software Suite [12.3R6.6]JUNOS Web Management [12.3R6.6]JUNOS FIPS mode utilities [12.3R6.6]
{master:0}[ansible@server ~]$ ansible-galaxy list- Juniper.junos, 2.0.2Noticed that it should be fixed in the latest release, but...Updating to release 2.0.2 did not solve the issue... the same error..[ansible@server ~]$ ansible-galaxy list- Juniper.junos, 2.0.2