Uploaded image for project: 'Ansible Automation Platform RFEs'
  1. Ansible Automation Platform RFEs
  2. AAPRFE-2037

Add boolean to Survey questions

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Summary:
      Currently, AAP surveys do not support native boolean variables (true/false). Instead, survey responses are treated as strings, which causes issues when using these variables in conditionals to determine whether tasks or plays should run.

      Problem Statement:
      When using a Multiple Choice (single select) survey question with options true and false, AAP treats these as strings rather than booleans. This leads to unexpected behavior when using conditionals in Ansible playbooks.
      The current workaround is to declare these variables in the Job Template's Extra Variables, with the Prompt on launch option enabled, but this is not ideal for structured survey-based input.

      Requested Feature:
      Add native support for boolean-type survey questions in AAP.
      Ensure that responses are interpreted as actual booleans (true/false) rather than strings.
      Maintain compatibility with existing survey logic while improving usability for conditional playbook execution.

      Impact:
      This feature would improve usability by allowing boolean variables to be correctly processed without requiring workarounds, making playbook logic more reliable and intuitive.

              Unassigned Unassigned
              rhn-support-johenson Joshua Henson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: