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

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

Overview

The C(known_hosts) module lets you add or remove a host keys from the C(known_hosts) file. Starting at Ansible 2.2, multiple entries per host are allowed, but only one for each key type supported by ssh. This is useful if you’re going to want to use the M(git) module over ssh, for example. If you have a very large number of host keys to manage, you will find the M(template) module more useful.

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

#hash_host:yes, ...



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

attribute :hash_host

#keyString?



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

attribute :key

#nameString



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

attribute :name

#pathString?



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

attribute :path

#state:present, ...



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

attribute :state