Class: Ansible::Ruby::Modules::Pause

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/utilities/logic/pause.rb

Overview

Pauses playbook execution for a set amount of time, or until a prompt is acknowledged. All parameters are optional. The default behavior is to pause with a prompt. You can use C(ctrl+c) if you wish to advance a pause earlier than it is set to expire or if you need to abort a playbook run entirely. To continue early: press C(ctrl+c) and then C©. To abort a playbook: press C(ctrl+c) and then C(a). The pause module integrates into async/parallelized playbooks without any special considerations (see also: Rolling Updates). When using pauses with the C(serial) playbook parameter (as in rolling updates) you are only prompted once for the current group of hosts.

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

#minutesString?

Returns Number of minutes to pause for.

Returns:

  • (String, nil)

    Number of minutes to pause for.



13
# File 'lib/ansible/ruby/modules/generated/core/utilities/logic/pause.rb', line 13

attribute :minutes

#promptString?

Returns Optional text to use for the prompt message.

Returns:

  • (String, nil)

    Optional text to use for the prompt message.



20
# File 'lib/ansible/ruby/modules/generated/core/utilities/logic/pause.rb', line 20

attribute :prompt

#secondsObject?

Returns Number of seconds to pause for.

Returns:

  • (Object, nil)

    Number of seconds to pause for.



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

attribute :seconds