Class: Ansible::Ruby::Modules::Edgeos_config

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/network/edgeos/edgeos_config.rb

Overview

This module provides configuration file management of EdgeOS devices. It provides arguments for managing both the configuration file and state of the active configuration. All configuration statements are based on ‘set` and `delete` commands in the device configuration. This is a network module and requires the C(connection: network_cli) in order to work properly. For more information please see the L(Network Guide,../network/getting_started/index.html).

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

#backup:yes, ...

Returns The C(backup) argument will backup the current device’s active configuration to the Ansible control host prior to making any changes. The backup file will be located in the backup folder in the playbook root directory or role root directory if the playbook is part of an ansible role. If the directory does not exist, it is created.

Returns:

  • (:yes, :no, nil)

    The C(backup) argument will backup the current device’s active configuration to the Ansible control host prior to making any changes. The backup file will be located in the backup folder in the playbook root directory or role root directory if the playbook is part of an ansible role. If the directory does not exist, it is created.



26
# File 'lib/ansible/ruby/modules/generated/network/edgeos/edgeos_config.rb', line 26

attribute :backup

#commentString?

Returns Allows a commit description to be specified to be included when the configuration is committed. If the configuration is not changed or committed, this argument is ignored.

Returns:

  • (String, nil)

    Allows a commit description to be specified to be included when the configuration is committed. If the configuration is not changed or committed, this argument is ignored.



30
# File 'lib/ansible/ruby/modules/generated/network/edgeos/edgeos_config.rb', line 30

attribute :comment

#configObject?

Returns The C(config) argument specifies the base configuration to use to compare against the desired configuration. If this value is not specified, the module will automatically retrieve the current active configuration from the remote device.

Returns:

  • (Object, nil)

    The C(config) argument specifies the base configuration to use to compare against the desired configuration. If this value is not specified, the module will automatically retrieve the current active configuration from the remote device.



34
# File 'lib/ansible/ruby/modules/generated/network/edgeos/edgeos_config.rb', line 34

attribute :config

#linesArray<String>, ...

Returns The ordered set of configuration lines to be managed and compared with the existing configuration on the remote device.

Returns:

  • (Array<String>, String, nil)

    The ordered set of configuration lines to be managed and compared with the existing configuration on the remote device.



14
# File 'lib/ansible/ruby/modules/generated/network/edgeos/edgeos_config.rb', line 14

attribute :lines

#match:line, ...

Returns The C(match) argument controls the method used to match against the current active configuration. By default, the desired config is matched against the active config and the deltas are loaded. If the C(match) argument is set to C(none) the active configuration is ignored and the configuration is always loaded.

Returns:

  • (:line, :none, nil)

    The C(match) argument controls the method used to match against the current active configuration. By default, the desired config is matched against the active config and the deltas are loaded. If the C(match) argument is set to C(none) the active configuration is ignored and the configuration is always loaded.



22
# File 'lib/ansible/ruby/modules/generated/network/edgeos/edgeos_config.rb', line 22

attribute :match

#save:yes, ...

Returns The C(save) argument controls whether or not changes made to the active configuration are saved to disk. This is independent of committing the config. When set to C(True), the active configuration is saved.

Returns:

  • (:yes, :no, nil)

    The C(save) argument controls whether or not changes made to the active configuration are saved to disk. This is independent of committing the config. When set to C(True), the active configuration is saved.



37
# File 'lib/ansible/ruby/modules/generated/network/edgeos/edgeos_config.rb', line 37

attribute :save

#srcString?

Returns The C(src) argument specifies the path to the source config file to load. The source config file can either be in bracket format or set format. The source file can include Jinja2 template variables.

Returns:

  • (String, nil)

    The C(src) argument specifies the path to the source config file to load. The source config file can either be in bracket format or set format. The source file can include Jinja2 template variables.



18
# File 'lib/ansible/ruby/modules/generated/network/edgeos/edgeos_config.rb', line 18

attribute :src