I am running ansible awx role on oracle virtual box. Role has been ran perfectly and i was able to access the Ansible awx. I have added the playbooks manually and create a template to perform the job.
But while running job template i am getting below error:
Traceback (most recent call last):
File “/usr/lib/python2.7/site-packages/awx/main/tasks.py”, line 799, in run
cwd = self.build_cwd(instance, **kwargs)
File “/usr/lib/python2.7/site-packages/awx/main/tasks.py”, line 1188, in build_cwd
(job.project.local_path, root))
RuntimeError: project local_path user cannot be found in /var/lib/awx/projects
Hey would you mind sharing where both web containers and task containers directories are and perhaps give an example on how to sync them up? Do we also have to resatr the server after adding a project manually ? thanks
your project directories should live in /var/lib/awx/projects
so for example: /var/lib/awx/projects/superawesomeplaybooks/
on both containers. The best example I can give of syncing them up is to put the playbooks into a git repository and then sync them using project syncs. It’s super handy and convenient and is supported natively in AWX. So, add an scm credential (your ssh key for example) then go create a new project… select Git (or any of the other scm types) then put the repository location in, and you’re done!