Ansible Pause Playbook Execution
Example 1: Prompt the User to Close Applications
- name: A reminder to make sure the user has closed all the apps before continuing
ansible.builtin.pause:
prompt: "Make sure there is no application running on the server!"Example 2: Pause for a Fixed Duration
- name: Pause for 5 minutes to let the database server settle
ansible.builtin.pause:
minutes: 5Example 3: Pause and Await User Confirmation
- name: Wait for user confirmation before proceeding with the next step
ansible.builtin.pause:
prompt: "Have you backed up all necessary data? Type 'yes' to continue."
echo: trueLast updated