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 ctrl+c
and then c
. To abort a playbook press ctrl+c
and then a
.serial
playbook parameter (as in rolling updates) you are only prompted once for the current group of hosts.Parameter | Choices/Defaults | Comments |
---|---|---|
echo boolean added in 2.5 |
| 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. |
Note
# 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
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 boolean | 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 |
More information about Red Hat’s support of this module is available from this Red Hat Knowledge Base article.
Hint
If you notice any issues in this documentation, you can edit this document to improve it.
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.9/modules/pause_module.html