Class: Ansible::Ruby::Modules::Hostname
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Hostname
- Defined in:
- lib/ansible/ruby/modules/generated/core/system/hostname.rb
Overview
Set system’s hostname. Currently implemented on Debian, Ubuntu, Fedora, RedHat, openSUSE, Linaro, ScientificLinux, Arch, CentOS, AMI. Any distribution that uses systemd as their init system. Note, this module does NOT modify /etc/hosts. You need to modify it yourself using other modules like template or replace.
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, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#name ⇒ String
14 |
# File 'lib/ansible/ruby/modules/generated/core/system/hostname.rb', line 14 attribute :name |