I am trying to create an ansible template that will update a survey in a workflow regarding my msp’s meraki orgs and networkids. When I put in ansilbe code:
- name: update survey choices
awx.awx.workflow_job_template:
controller_host: "{{ awx_host }}"
controller_oauthtoken: "{{ awx_token }}"
name: "MERAKI_NETWORK_CONFIG_WORKFLOW"
survey_enabled: true
survey_spec: "{{ lookup('template', 'meraki_update_survey.j2') }}"
validate_certs: no
register: uri_status
And this jinja
{ "name": "MERAKI_NETWORK_CONFIG_WORKFLOW",
"description": "WORKFLOW AUDIT",
"spec": [
{
"type": "multiplechoice",
"question_name": "Select the ORG and NETWORK",
"question_description": "org network orgid",
"variable": "org_network_select",
"choices": {{push_meraki_list}},
"required": true
}
]
}
The ansible job completes and I can use it in my workflow, however when I try to manually view the survey in awx, I get the following error message:
TypeError: Cannot read properties of undefined (reading 'split')
Is this supposed to happen when updating a workflow's survey from ansible rather than awx?