top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Can I control steps being executed by ansible playbook at run time ?

+1 vote
303 views

Is there any option to control execution of ansible playbook by mean of user interactive mode ? I mean before executing any task it prompts for the user input and based on user input it takes action to run or not.

posted Apr 27, 2017 by Vikram Singh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Ansible is configuration management tool. It supports ad-hoc mode as well as scripting mode. Sometime users want interactive mode while dealing with scripting just to have control on few tasks. The option --step is used while running a playbook. It prompts for user input (y/n/c). Based on user input associated task is executed or not.

answer Apr 29, 2017 by Rupam
Similar Questions
0 votes

A playbook may consist of multiple tasks and as per my understanding it runs from top to bottom. Is there any way to start execution from a task other than first one ? If yes then what is the way to do that ?

0 votes

There is a possibility on one controller multiple people are working and all of them have login credentials of controller node. Assume someone is editing one playbook but he/she does not let others to see the changes. Is there any way in Ansible by which a user can stop others to edit/read the file ?

+1 vote

I have one application which is running in a stand alone system. I want to run the same application in a docker container. I also want to know that is only one process that can run in a docker container ?

...