I was able to setup an awx test project/credential/inventory/template and run the template successfully. But I'm sure there is a better/correct way to setup such a test project. What I did:
In awx
Created "Ansible Test Project":

Created "Ansible Test Credential":

Created "Ansible Test Inventory" with one host (localhost):

Created "Ansible Test Job Template":

I configured the git container to use http and in order for awx to access it, I logged into each of the containers awx_web and awx_task and added the git container ip (determined using docker network inspect bridge) to the hosts file.
The hello_world.yml playbook on git:
---
- name: Hello World!
hosts: localhost
tasks:
- name: Hello World!
shell: echo "Hi! AWX is working."
- name: hostname
command: hostname
- name: pwd
command: pwd
- name: ls
command: ls
The template (playbook) ran successfully but I don't understand why the hostname command returns "awx" and not awx_task or how I can create/add another host to the inventory.
And I sure I could create a better/correct configuration so that I don't need to login to the awx containers to update the hosts file in order to access the git container. Still have a lot to learn about setting up container to container configuration I suppose.
On Tuesday, January 23, 2018 at 3:18:29 PM UTC+1,
ri...@gmx.de wrote: