# workflow job template survey spec with booleans

**URL:** <https://forum.ansible.com/t/workflow-job-template-survey-spec-with-booleans/34375>\
**Category:** AWX Project\
**Created:** [December 28, 2020, 9:17pm UTC](https://forum.ansible.com/t/workflow-job-template-survey-spec-with-booleans/34375 "2020-12-28T21:17:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Travis\_Burrell](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@Travis\_Burrell](https://forum.ansible.com/u/Travis_Burrell)\
**Post date:** [December 28, 2020, 9:17pm UTC](https://forum.ansible.com/t/workflow-job-template-survey-spec-with-booleans/34375/1 "2020-12-28T21:17:50Z")

</div>

I’m using the Tower collection (3.8.0) to create workflow job templates (ansible.tower.tower\_workflow\_job\_template).

I’m attempting to create a workflow job template and survey spec that includes the following (I’m doing a from\_yaml | to\_json conversion): [https://gist.github.com/t-readyroc/d591d9e0cad14d45169b1a5f5db1f1cb](https://gist.github.com/t-readyroc/d591d9e0cad14d45169b1a5f5db1f1cb)

My survey spec is 176 lines, including the above. However, if I include the above, the workflow job template is created, but the survey is not. If I remove those 22 lines, the survey is created without issue.

I’ve tried with and without the quotes. Is there a way to create the survey using the collection with a “multiplechoice” question type that includes booleans as choices? Related: it would be nice if the module would produce a descriptive error instead of continuing on like nothing happened (when the survey isn’t created, but the template is).

---

<div class="post-metadata">

**Author:** ![Travis\_Burrell](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@Travis\_Burrell](https://forum.ansible.com/u/Travis_Burrell)\
**Post date:** [December 29, 2020, 2:20pm UTC](https://forum.ansible.com/t/workflow-job-template-survey-spec-with-booleans/34375/2 "2020-12-29T14:20:17Z")

</div>

I should mention: my survey spec has a number of other multiplechoice question types (formatted identically to my gist) that are created without issue - the issue seems to specifically be with any multiplechoice type that has booleans as choices.

---

<div class="post-metadata">

**Author:** ![Travis\_Burrell](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@Travis\_Burrell](https://forum.ansible.com/u/Travis_Burrell)\
**Post date:** [December 29, 2020, 2:27pm UTC](https://forum.ansible.com/t/workflow-job-template-survey-spec-with-booleans/34375/3 "2020-12-29T14:27:03Z")

</div>

I’ll add that capitalization of True/False Yes/No did not affect the outcome.

---

<div class="post-metadata">

**Author:** ![Travis\_Burrell](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@Travis\_Burrell](https://forum.ansible.com/u/Travis_Burrell)\
**Post date:** [December 29, 2020, 3:48pm UTC](https://forum.ansible.com/t/workflow-job-template-survey-spec-with-booleans/34375/4 "2020-12-29T15:48:13Z")

</div>

I’ve found a workaround. Please see [https://github.com/ansible/awx/issues/8987](https://github.com/ansible/awx/issues/8987)
