Class: Ansible::Ruby::Modules::Junos_package

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/network/junos/junos_package.rb

Overview

This module can install new and updated packages on remote devices running Junos. The module will compare the specified package with the one running on the remote device and install the specified version if there is a mismatch

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#forceBoolean?

Returns The O(force) argument instructs the module to bypass the package version check and install the packaged identified in O(src) on the remote device.

Returns:

  • (Boolean, nil)

    The O(force) argument instructs the module to bypass the package version check and install the packaged identified in O(src) on the remote device.



26
# File 'lib/ansible/ruby/modules/generated/core/network/junos/junos_package.rb', line 26

attribute :force

#no_copyBoolean?

Returns The O(no_copy) arugment is responsible for instructing the remote device on where to isntall the package from. When enabled, the package is transferred to the remote device prior to installing.

Returns:

  • (Boolean, nil)

    The O(no_copy) arugment is responsible for instructing the remote device on where to isntall the package from. When enabled, the package is transferred to the remote device prior to installing.



22
# File 'lib/ansible/ruby/modules/generated/core/network/junos/junos_package.rb', line 22

attribute :no_copy

#rebootBoolean

Returns In order for a package to take effect, the remote device must be restarted. When enabled, this argument will instruct the module to reboot the device once the updated package has been installed. If disabled or the remote package does not need to be changed, the device will not be started.

Returns:

  • (Boolean)

    In order for a package to take effect, the remote device must be restarted. When enabled, this argument will instruct the module to reboot the device once the updated package has been installed. If disabled or the remote package does not need to be changed, the device will not be started.



18
# File 'lib/ansible/ruby/modules/generated/core/network/junos/junos_package.rb', line 18

attribute :reboot

#srcString

Returns The O(src) argument specifies the path to the source package to be installed on the remote device in the advent of a version mismatch. The O(src) argument can be either a localized path or a full path to the package file to install.

Returns:

  • (String)

    The O(src) argument specifies the path to the source package to be installed on the remote device in the advent of a version mismatch. The O(src) argument can be either a localized path or a full path to the package file to install



11
# File 'lib/ansible/ruby/modules/generated/core/network/junos/junos_package.rb', line 11

attribute :src

#versionObject?

Returns The O(version) argument can be used to explicitly specify the version of the package that should be installed on the remote device. If the O(version) argument is not specified, then the version is extracts from the O(src) filename.

Returns:

  • (Object, nil)

    The O(version) argument can be used to explicitly specify the version of the package that should be installed on the remote device. If the O(version) argument is not specified, then the version is extracts from the O(src) filename



15
# File 'lib/ansible/ruby/modules/generated/core/network/junos/junos_package.rb', line 15

attribute :version