Edvinas
(Edvinas Kairys)
November 15, 2023, 1:15pm
1
Hello, community !
I’m using AWX Survey with multiple variables. But i need to improve my AWX Survey to be able to populate survey choices that depend on prior survey choices.
For example if my first survey variable is called: region1, the second survey choice should be: A, B or C.
But if my first survey choice is other - region2, the second survey choice should be: D, E or F.
As i know AWX Survey still don’t have a thing called Dynamic/programmatical choices. But maybe there’re a way to somehow input a static structured format, for example, dict of lists, like:
dict1 = {'region1': [A, B, C], 'region2':[D, E, F]}
?
1 Like
Hi,
Actually this is not possible with AWX.
As far as I know there are some issues for enhancement on this topic but are not prioritized.
Something that will bel also very interested is the usage of dynamic survey based on db query or something more complex that dependent choice.
I hope that team will evaluate those things.
1 Like
jbericat
(Jordi Bericat Ruz)
November 15, 2023, 2:10pm
3
There is this open issue on GitHub:
opened 08:05PM - 06 Sep 17 UTC
type:enhancement
component:api
component:ui
AWX Feature Spec - Programmable Surveys
=======================================…
User Persona
------------
Administrator delegating jobs to user
Delegated automation user
Usage Cases
-----------
High-level:
* Administrator wants to present to the user a list of builds to choose to deploy.
* Administrator wants to present to the user a verified list of configuration parameters to push to the chosen network devices.
* Adminsitrator wants to present survey chocies that depend on prior survey choices, such as a choice to select an AWS region based on 'AWS' being a prior survey answer.
API Considerations
------------------
We must keep the survey JSON specification stable, or CLEARLY notify users when it changes. This may require a v2 survey spec.
http://json-schema.org/ may be of use.
UI/UX Considerations
--------------------
Larger surveys should have options to collapse questions until needed. (c.f. https://github.com/ansible/awx/issues/290)
Docs
----
Should have sample survey examples
QA Suggestions
--------------
Notes
-----
Updates/Changelog
-----------------
2017-09-06: initial/updated spec
2017-09-25: added note about collapsible surveys
Feel free to upvote the original post, looks like we’re not the only ones waiting for this feat
Sept 2017… Good luck for us
2 Likes
jbericat
(Jordi Bericat Ruz)
November 15, 2023, 6:09pm
5
hahhaha yet it’s a pretty alive thread lol
I’m just investigating a service catalog like service now for non awx user (so like legali team, PM od other).
I see squest from HP and AnsibleForms Docs - Graphical User Interface .
In the past RH will try to do that with GitHub - ansible/pinakes but seems that hti Technical preview will not become ready for production, probably due to agreement with servicenow .
Squest is good but is very poor in terms of organization concept (no segregation of portfolio/service) .
I need to test ansibleforms…
1 Like
That ansibleforms link is quite interesting.
I originally couldn’t see the need for programmable/dynamic surveys since dynamic inventories would be able to provide what I thought was needed, but after looking through that webpage, I really like the idea behind it.
Very useful to have.
1 Like
Yes, also to me… This is why i wnat to test and investigare it.
Also forma can be designer online and can be accessibile to users and groups…so very intersting
1 Like