Ansible scripts run as expected from cli, not from AWX

14 views
Skip to first unread message

madd...@gmail.com

unread,
Jan 18, 2021, 8:46:10 AM1/18/21
to Ansible Project
I've been using ansible for awhile now and love it. I just installed AWX to try to let some of my junior admins access to ansible through AWX web interface. I've never used AWX previously as ansible has been easy for me. When I first moved one of my self-made ansible playbooks over to AWX directories, I ran into "venv" issues. I created a new venv via:
sudo virtualenv /var/lib/awx/venv/my-custom-venv 
sudo /var/lib/awx/venv/my-custom-venv/bin/pip install python-memcached psutil
sudo /var/lib/awx/venv/my-custom-venv/bin/pip install pywinrm

Point my playbook (template in awx) to the newly created venv, run the template and it complains on ssh. It should know to look to group_vars which tell it to use winrm.

My normal working ansible config consists of:
my hosts are stored in /etc/ansible/hosts
my vars are located in /etc/ansible/group_vars/groupvarname

Playbooks run normally from ansible on the cli. SInce I'm not to familiar with AWX, I'm hoping someone can point me in the right direction. I dont see anyplace obvious in AWX to point to a group var. Should I move or copy my group_vars to the venv? 

Any help would be appreciated. I can include configs if needed. 

Dick Visser

unread,
Jan 18, 2021, 11:03:29 AM1/18/21
to ansible...@googlegroups.com
I'm not familiar with AWX either.
But the people on the dedicated AWX list probably are:
https://groups.google.com/g/awx-project
I would give that a try.
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/fd699751-3232-4e04-bfb2-fd18c64058cen%40googlegroups.com.



--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

Gerry Maddock

unread,
Jan 18, 2021, 11:08:13 AM1/18/21
to ansible...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages