pause - Pause playbook execution

Synopsis

Parameters

Parameter Choices/Defaults Comments
echo
bool

(added in 2.5)
    Choices:
  • no
  • yes ←
Controls whether or not keyboard input is shown when typing.
Has no effect if 'seconds' or 'minutes' is set.
minutes
A positive number of minutes to pause for.
prompt
Optional text to use for the prompt message.
seconds
A positive number of seconds to pause for.

Notes

Note

  • Starting in 2.2, if you specify 0 or negative for minutes or seconds, it will wait for 1 second, previously it would wait indefinitely.
  • This module is also supported for Windows targets.
  • User input is not captured or echoed, regardless of echo setting, when minutes or seconds is specified.

Examples

# Pause for 5 minutes to build app cache.
- pause:
    minutes: 5

# Pause until you can verify updates to an application were successful.
- pause:

# A helpful reminder of what to look out for post-update.
- pause:
    prompt: "Make sure org.foo.FooOverload exception is not present"

# Pause to get some sensitive input.
- pause:
    prompt: "Enter a secret"
    echo: no

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key Returned Description
delta
string
always
Time paused in seconds

Sample:
2
echo
bool
always
Value of echo setting

Sample:
True
start
string
always
Time when started pausing

Sample:
2017-02-23 14:35:07.298862
stdout
string
always
Output of pause module

Sample:
Paused for 0.04 minutes
stop
string
always
Time when ended pausing

Sample:
2017-02-23 14:35:09.552594
user_input
string
if no waiting time set
User input from interactive console

Sample:
Example user input


Status

This module is flagged as stableinterface which means that the maintainers for this module guarantee that no backward incompatible interface changes will be made.

Maintenance

This module is flagged as core which means that it is maintained by the Ansible Core Team. See Module Maintenance & Support for more info.

For a list of other modules that are also maintained by the Ansible Core Team, see here.

Support

For more information about Red Hat’s support of this module, please refer to this Knowledge Base article

Author

  • Tim Bielawa (@tbielawa)

Hint

If you notice any issues in this documentation you can edit this document to improve it.