Class: Ansible::Ruby::Modules::Known_hosts
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Known_hosts
- Defined in:
- lib/ansible/ruby/modules/generated/extras/system/known_hosts.rb
Instance Method Summary collapse
-
#key ⇒ String?
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).
-
#name ⇒ String
The host to add or remove (must match a host specified in key).
-
#path ⇒ String?
The known_hosts file to edit.
-
#state ⇒ :present, ...
I(present) to add the host, I(absent) to remove it.
Methods inherited from Base
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
#key ⇒ String?
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).
14 |
# File 'lib/ansible/ruby/modules/generated/extras/system/known_hosts.rb', line 14 attribute :key |
#name ⇒ String
Returns 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 |
#path ⇒ String?
Returns 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.
22 |
# File 'lib/ansible/ruby/modules/generated/extras/system/known_hosts.rb', line 22 attribute :state |