Member-only story

Ansible troubleshooting — Error no-prompting

How to Solve the Ansible Error no-prompting

Luca Berton
4 min readNov 7, 2023

Avoid Unnecessary Prompting and Pausing in Ansible Playbooks

Ansible is a powerful automation tool designed to simplify complex IT tasks. While it’s excellent for handling various configurations and deployments, it’s important to create playbooks that can run unattended, particularly in Continuous Integration/Continuous Deployment (CI/CD) pipelines. This article discusses the Ansible playbook error “no-prompting,” which helps ensure that your playbooks are suitable for automated, unattended execution.

The Challenge: Prompts and Pauses

Sometimes, playbooks include user prompts or unnecessary pauses. While these may be useful for manual interventions in some situations, they can become obstacles when you want your playbooks to execute automatically.

For instance, consider a playbook that asks for user credentials via vars_prompt and includes tasks like ansible.builtin.pause to create wait times. In a CI/CD environment, these prompts and pauses can lead to stalled automation pipelines.

The Solution: no-prompting Rule

--

--

Luca Berton
Luca Berton

Written by Luca Berton

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday

No responses yet