Class: Ansible::Ruby::Modules::Junos_facts

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

Overview

Collects fact information from a remote device running the Junos operating system. By default, the module will collect basic fact information from the device to be included with the hostvars. Additional fact information can be collected based on the configured set of arguments.

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

#configBoolean?

Returns The C(config) argument instructs the fact module to collect the configuration from the remote device. The configuration is then included in return facts. By default, the configuration is returned as text. The C(config_format) can be used to return different Junos configuration formats.

Returns:

  • (Boolean, nil)

    The C(config) argument instructs the fact module to collect the configuration from the remote device. The configuration is then included in return facts. By default, the configuration is returned as text. The C(config_format) can be used to return different Junos configuration formats.



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

attribute :config

#config_format:xml, ...

Returns The C(config_format) argument is used to specify the desired format of the configuration file. Devices support three configuration file formats. By default, the configuration from the device is returned as text. The other options include set and xml. If the xml option is choosen, the configuration file is returned as both xml and json.

Returns:

  • (:xml, :text, :set, nil)

    The C(config_format) argument is used to specify the desired format of the configuration file. Devices support three configuration file formats. By default, the configuration from the device is returned as text. The other options include set and xml. If the xml option is choosen, the configuration file is returned as both xml and json.



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

attribute :config_format