junos_package

30 views
Skip to first unread message

RaviCharan Reddy

unread,
Jul 25, 2016, 5:28:45 PM7/25/16
to Ansible Project
Hello,

has anyone used the latest ansible core module junos_package to updgrade the OS. I am trying to update the OS using this module, but my playbook throws an error (unable to install package on device). When I check the device, the image will be copied successfully, however it will not install OS.

I am running below playbook.


---
- hosts: Juniper
  gather_facts: no
  connection: local

  tasks:
  - name: Updating Junos 
    junos_package:
      host: "{{ ip_address }}"
      username: "{{ username }}"
      password: "{{ password }}"
      src: ~/package
      reboot: yes
      version: 14.1X53-D53.3
      timeout: 120

Thanks,
Ravicharan
Reply all
Reply to author
Forward
0 new messages