Class: Ansible::Ruby::Modules::Junos_package
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Junos_package
- Defined in:
- lib/ansible/ruby/modules/generated/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
-
#force ⇒ :yes, :no
The I(force) argument instructs the module to bypass the package version check and install the packaged identified in I(src) on the remote device.
-
#no_copy ⇒ :yes, ...
The I(no_copy) argument is responsible for instructing the remote device on where to install the package from.
-
#reboot ⇒ :yes, :no
In order for a package to take effect, the remote device must be restarted.
-
#src ⇒ String
The I(src) argument specifies the path to the source package to be installed on the remote device in the advent of a version mismatch.
-
#validate ⇒ :yes, ...
The I(validate) argument is responsible for instructing the remote device to skip checking the current device configuration compatibility with the package being installed.
-
#version ⇒ Object?
The I(version) argument can be used to explicitly specify the version of the package that should be installed on the remote device.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#force ⇒ :yes, :no
Returns The I(force) argument instructs the module to bypass the package version check and install the packaged identified in I(src) on the remote device.
31 |
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_package.rb', line 31 attribute :force |
#no_copy ⇒ :yes, ...
Returns The I(no_copy) argument is responsible for instructing the remote device on where to install the package from. When enabled, the package is transferred to the remote device prior to installing.
23 |
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_package.rb', line 23 attribute :no_copy |
#reboot ⇒ :yes, :no
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.
19 |
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_package.rb', line 19 attribute :reboot |
#src ⇒ String
Returns The I(src) argument specifies the path to the source package to be installed on the remote device in the advent of a version mismatch. The I(src) argument can be either a localized path or a full path to the package file to install.
12 |
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_package.rb', line 12 attribute :src |
#validate ⇒ :yes, ...
Returns The I(validate) argument is responsible for instructing the remote device to skip checking the current device configuration compatibility with the package being installed. When set to false validation is not performed.
27 |
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_package.rb', line 27 attribute :validate |
#version ⇒ Object?
Returns The I(version) argument can be used to explicitly specify the version of the package that should be installed on the remote device. If the I(version) argument is not specified, then the version is extracts from the I(src) filename.
16 |
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_package.rb', line 16 attribute :version |