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

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

Methods inherited from Base

#ansible_name, #to_h

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

#nameString



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

attribute :name