Class: Ansible::Ruby::Modules::Junos_banner

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

Overview

This will configure both login and motd banners on network devices. It allows playbooks to add or remote banner text from the active running configuration.

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

#active:yes, ...

Returns Specifies whether or not the configuration is active or deactivated.

Returns:

  • (:yes, :no, nil)

    Specifies whether or not the configuration is active or deactivated



24
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_banner.rb', line 24

attribute :active

Returns Specifies which banner that should be configured on the remote device. Value C(login) indicates system login message prior to authenticating, C(motd) is login announcement after successful authentication.

Returns:

  • (:login, :motd)

    Specifies which banner that should be configured on the remote device. Value C(login) indicates system login message prior to authenticating, C(motd) is login announcement after successful authentication.



12
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_banner.rb', line 12

attribute :banner

#state:present, ...

Returns Specifies whether or not the configuration is present in the current devices active running configuration.

Returns:

  • (:present, :absent, nil)

    Specifies whether or not the configuration is present in the current devices active running configuration.



20
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_banner.rb', line 20

attribute :state

#textString?

Returns The banner text that should be present in the remote device running configuration. This argument accepts a multiline string, with no empty lines. Requires I(state=present).

Returns:

  • (String, nil)

    The banner text that should be present in the remote device running configuration. This argument accepts a multiline string, with no empty lines. Requires I(state=present).



16
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_banner.rb', line 16

attribute :text