Juniper Network Automation using Ansible Tower Network Credentials

I am trying to use the network credentials in Ansible Tower however it doesn’t seem to work. I am using variable ANSIBLE_NET_USERNAME and ANSIBLE_NET_PASSWORD however they don’t exist when I run my template.

playbook.yaml

You are using the Juniper modules distributed from Galaxy which are not compatible with Tower today. The only modules that work with Tower credentials are the Junos modules in core.

That was the problem. I changed the module to junos_facts which was already included with Ansible Tower.