Class: Ansible::Ruby::Modules::Vmware_host_ntp

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host_ntp.rb

Overview

This module can be used to manage NTP configuration information about an ESXi host. User can specify an ESXi hostname or Cluster name. In case of cluster name, all ESXi hosts are updated.

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

#cluster_nameString?

Returns Name of the cluster.,NTP settings are applied to every ESXi host system in the given cluster.,If C(esxi_hostname) is not given, this parameter is required.

Returns:

  • (String, nil)

    Name of the cluster.,NTP settings are applied to every ESXi host system in the given cluster.,If C(esxi_hostname) is not given, this parameter is required.



13
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host_ntp.rb', line 13

attribute :cluster_name

#esxi_hostnameString?

Returns ESXi hostname.,NTP settings are applied to this ESXi host system.,If C(cluster_name) is not given, this parameter is required.

Returns:

  • (String, nil)

    ESXi hostname.,NTP settings are applied to this ESXi host system.,If C(cluster_name) is not given, this parameter is required.



17
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host_ntp.rb', line 17

attribute :esxi_hostname

#ntp_serversArray<String>, String

Returns IP or FQDN of NTP server/s.,This accepts a list of NTP servers. For multiple servers, please look at the examples.

Returns:

  • (Array<String>, String)

    IP or FQDN of NTP server/s.,This accepts a list of NTP servers. For multiple servers, please look at the examples.



21
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host_ntp.rb', line 21

attribute :ntp_servers

#state:present, ...

Returns present: Add NTP server/s, if it specified server/s are absent else do nothing.,absent: Remove NTP server/s, if specified server/s are present else do nothing.

Returns:

  • (:present, :absent, nil)

    present: Add NTP server/s, if it specified server/s are absent else do nothing.,absent: Remove NTP server/s, if specified server/s are present else do nothing.



25
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_host_ntp.rb', line 25

attribute :state