Class: Ansible::Ruby::Modules::Hostname
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Hostname
- Defined in:
- lib/ansible/ruby/modules/generated/system/hostname.rb
Overview
Set system’s hostname, supports most OSs/Distributions, including those using systemd. Note, this module does NOT modify C(/etc/hosts). You need to modify it yourself using other modules like template or replace. Windows, HP-UX and AIX are not currently supported.
Instance Method Summary collapse
-
#name ⇒ String
Name of the host.
Methods inherited from Base
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
#name ⇒ String
Returns Name of the host.
14 |
# File 'lib/ansible/ruby/modules/generated/system/hostname.rb', line 14 attribute :name |