Skip to content

# Modified Playbook with vars_prompt#2

Open
dpakGit wants to merge 1 commit intorahulwagh:mainfrom
dpakGit:patch-1
Open

# Modified Playbook with vars_prompt#2
dpakGit wants to merge 1 commit intorahulwagh:mainfrom
dpakGit:patch-1

Conversation

@dpakGit
Copy link
Copy Markdown

@dpakGit dpakGit commented Jan 2, 2026

This playbook uses vars_prompt to dynamically prompt for the server port number, eliminating the need to edit the playbook.

Benefits:

  • No need to edit the playbook to change the server port.
  • Prompts for input during execution, making it more flexible.
  • The server_port variable is available to all tasks in the play, so you don't need to redefine it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant