syntax error in playbook when using SCM playbook from git but exact playbook runs from awx cli

I am running AWX 3.0.1.0 in docker and playbooks from git are not running due to syntax errors. no playbooks from git work but the same playbook works from awx cli

I have the following playbook in git which is identical to a playbook in /var/lib/awx/projects/Playbooks

This seems to only affect playbooks with juniper_junos in them. I am able to run the following playbook to enable netconf with no issues from git

  • name: enable_netconf
    hosts: all
    roles:
  • Juniper.junos
    connection: local
    gather_facts: no
    vars:
    provider_info:
    host: “{{ ansible_host | default(inventory_hostname) }}”
    port: 22
    tasks:
  • name: enable netconf
    junos_netconf:
    listens_on: 22
    state: present