Class: Ansible::Ruby::Modules::Iosxr_template

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

Instance Method Summary collapse

Methods inherited from Base

#to_h

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

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

Constructor Details

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

Instance Method Details

#backupBoolean?

Returns When this argument is configured true, the module will backup the running-config from the node prior to making any changes. The backup file will be written to backup_hostname } in the root of the playbook directory.

Returns:

  • (Boolean, nil)

    When this argument is configured true, the module will backup the running-config from the node prior to making any changes. The backup file will be written to backup_hostname } in the root of the playbook directory.



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

attribute :backup

#configString?

Returns The module, by default, will connect to the remote device and retrieve the current running-config to use as a base for comparing against the contents of source. There are times when it is not desirable to have the task get the current running-config for every task. The I(config) argument allows the implementer to pass in the configuruation to use as the base config for comparision.

Returns:

  • (String, nil)

    The module, by default, will connect to the remote device and retrieve the current running-config to use as a base for comparing against the contents of source. There are times when it is not desirable to have the task get the current running-config for every task. The I(config) argument allows the implementer to pass in the configuruation to use as the base config for comparision.



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

attribute :config

#forceBoolean?

Returns The force argument instructs the module not to consider the current device running-config. When set to true, this will cause the module to push the contents of I(src) into the device without first checking if already configured.

Returns:

  • (Boolean, nil)

    The force argument instructs the module not to consider the current device running-config. When set to true, this will cause the module to push the contents of I(src) into the device without first checking if already configured.



14
# File 'lib/ansible/ruby/modules/generated/core/network/iosxr/iosxr_template.rb', line 14

attribute :force

#srcString?

Returns The path to the config source. The source can be either a file with config or a template that will be merged during runtime. By default the task will first search for the source file in role or playbook root folder in templates unless a full path to the file is given.

Returns:

  • (String, nil)

    The path to the config source. The source can be either a file with config or a template that will be merged during runtime. By default the task will first search for the source file in role or playbook root folder in templates unless a full path to the file is given.



10
# File 'lib/ansible/ruby/modules/generated/core/network/iosxr/iosxr_template.rb', line 10

attribute :src