Class: Ansible::Ruby::Modules::Wait_for

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/utilities/logic/wait_for.rb,
lib/ansible/ruby/modules/custom/utilities/logic/wait_for.rb

Overview

You can wait for a set amount of time C(timeout), this is the default if nothing is specified or just C(timeout) is specified. This does not produce an error. Waiting for a port to become available is useful for when services are not immediately available after their init scripts return which is true of certain Java application servers. It is also useful when starting guests with the M(virt) module and needing to pause until they are ready. This module can also be used to wait for a regex match a string to be present in a file. In 1.6 and later, this module can also be used to wait for a file to be available or absent on the filesystem. In 1.8 and later, this module can also be used to wait for active connections to be closed before continuing, useful if a node is being rotated out of a load balancer pool. For Windows targets, use the M(win_wait_for) module instead.

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

#active_connection_statesString?



37
# File 'lib/ansible/ruby/modules/generated/utilities/logic/wait_for.rb', line 37

attribute :active_connection_states

#connect_timeoutInteger?



25
# File 'lib/ansible/ruby/modules/generated/utilities/logic/wait_for.rb', line 25

attribute :connect_timeout

#delayInteger?



29
# File 'lib/ansible/ruby/modules/generated/utilities/logic/wait_for.rb', line 29

attribute :delay

#exclude_hostsArray<String>, ...



53
# File 'lib/ansible/ruby/modules/generated/utilities/logic/wait_for.rb', line 53

attribute :exclude_hosts

#hostString?



17
# File 'lib/ansible/ruby/modules/generated/utilities/logic/wait_for.rb', line 17

attribute :host

#msgString?



61
# File 'lib/ansible/ruby/modules/generated/utilities/logic/wait_for.rb', line 61

attribute :msg

#pathString?



45
# File 'lib/ansible/ruby/modules/generated/utilities/logic/wait_for.rb', line 45

attribute :path

#portInteger?



33
# File 'lib/ansible/ruby/modules/generated/utilities/logic/wait_for.rb', line 33

attribute :port

#search_regexString?



49
# File 'lib/ansible/ruby/modules/generated/utilities/logic/wait_for.rb', line 49

attribute :search_regex

#sleepInteger?



57
# File 'lib/ansible/ruby/modules/generated/utilities/logic/wait_for.rb', line 57

attribute :sleep

#state:absent, ...



41
# File 'lib/ansible/ruby/modules/generated/utilities/logic/wait_for.rb', line 41

attribute :state

#timeoutInteger?



21
# File 'lib/ansible/ruby/modules/generated/utilities/logic/wait_for.rb', line 21

attribute :timeout