Class: Ansible::Ruby::Modules::Hostname

Inherits:
Base show all
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

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

#nameString

Returns Name of the host.

Returns:

  • (String)

    Name of the host



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

attribute :name