Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User_input at real time (while playbook runs) in AWX #15265

Open
4 of 9 tasks
bhawsarshubham opened this issue Jun 11, 2024 · 0 comments
Open
4 of 9 tasks

User_input at real time (while playbook runs) in AWX #15265

bhawsarshubham opened this issue Jun 11, 2024 · 0 comments

Comments

@bhawsarshubham
Copy link

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.

Feature type

New Feature

Feature Summary

I am looking for a feature over,
How to give user_input (usually through prompts) in AWX at the playbook runtime. My playbook (attached) is an interactive playbook which requires user input in the runtime. I am able to give inputs at real time when through Ansible CLI.
But, while using AWX, there is no such feature to provide user input while the playbook runs.
I have thought of using survey feature so that the user input can be given beforehand launching the playbook.
But, that only works for those variables which we are able to pre-define before running playbook.
If survey method used here restricts the dynamic nature of the attached playbook. As the playbook is designed in such a way that it dynamically fetches the number of unmounted volumes, and the number of mounted volumes, and prompts the user for mountpoint names only for unattached ones.
Also, the survey questions does not acknowledge if there is a change in number of volumes in any other run, which destroys the "Re-usability of code".
How do I solve this problem of providing user_input at real-time in AWX?

ebs_mount_ansible_facts.txt

Select the relevant components

  • UI
  • API
  • Docs
  • Collection
  • CLI
  • Other

Steps to reproduce

  1. AWX runs the playbook
  2. Playbook discover the number of unmounted volumes as per code in playbook
  3. Playbook discovers the number of mounted volumes as per code in playbook
    4. AWX must ask for mountpoint names for unmounted volumes, and the number of prompts for user input must be same as number of unmounted volumes.

Current results

Currently, The requirement gets fulfilled when running with Ansible CLI. But, TO make automation completely UI based , i.e. AWX.
There needs to be an equivalent feature in AWX too.
Also, As of now, in AWX the playbook stops running at a point where the user input is needed to playbook. And it continues to wait until the timeout duration is reached.

Sugested feature result

This will enable answering the prompts in real time while the playbook is being executed.

Additional information

No response

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

No branches or pull requests

2 participants