Class: Ansible::Ruby::Modules::Known_hosts

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/system/known_hosts.rb

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, #to_h, validates

Constructor Details

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

Instance Method Details

#keyString?

Returns The SSH public host key, as a string (required if state=present, optional when state=absent, in which case all keys for the host are removed).

Returns:

  • (String, nil)

    The SSH public host key, as a string (required if state=present, optional when state=absent, in which case all keys for the host are removed)



14
# File 'lib/ansible/ruby/modules/generated/extras/system/known_hosts.rb', line 14

attribute :key

#nameString

Returns The host to add or remove (must match a host specified in key).

Returns:

  • (String)

    The host to add or remove (must match a host specified in key)



10
# File 'lib/ansible/ruby/modules/generated/extras/system/known_hosts.rb', line 10

attribute :name

#pathString?

Returns The known_hosts file to edit.

Returns:

  • (String, nil)

    The known_hosts file to edit



18
# File 'lib/ansible/ruby/modules/generated/extras/system/known_hosts.rb', line 18

attribute :path

#state:present, ...

Returns I(present) to add the host, I(absent) to remove it.

Returns:

  • (:present, :absent, nil)

    I(present) to add the host, I(absent) to remove it.



22
# File 'lib/ansible/ruby/modules/generated/extras/system/known_hosts.rb', line 22

attribute :state