1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 17:51:24 +00:00
dockerfiles/awx/README.md

42 lines
1.1 KiB
Markdown
Raw Normal View History

2019-10-23 10:29:57 +00:00
awx
===
[AWX][1] provides a web-based user interface, REST API, and task engine built
on top of Ansible. It is the upstream project for [Tower][2], a commercial
derivative of AWX.
2019-10-30 08:11:49 +00:00
## directory tree
```
data
├── projects
│ └── example
│ └── playbook.yml
2020-06-22 10:24:09 +00:00
├── redis
2020-06-22 11:41:22 +00:00
│ ├── redis_socket (mode:777)
2020-06-22 10:24:09 +00:00
│ └── redis.conf
2019-10-30 08:11:49 +00:00
└── settings
├── SECRET_KEY
├── credentials.py
2020-06-22 10:24:09 +00:00
├── environment.sh
└── nginx.conf
2019-10-30 08:11:49 +00:00
```
## up and running
2020-06-22 11:41:22 +00:00
```bash
$ mkdir -m 777 -p data/redis/redis_socket
2019-10-30 08:11:49 +00:00
$ docker-compose up -d
$ docker-compose exec web bash
>>> awx-manage inventory_import --inventory-name=xxx --source=/path/to/inventory.ini
INFO Reading Ansible inventory source: /path/to/inventory.ini
INFO Loaded 1 groups, 30 hosts
INFO Inventory import completed for (xxx - 13) in 1.0s
2020-06-22 11:41:22 +00:00
>>> chown -R nginx:nginx /var/lib/nginx # XXX: https://github.com/ansible/awx/issues/5230
2019-10-30 08:11:49 +00:00
>>> exit
2020-06-22 11:41:22 +00:00
$ curl http://admin:password@127.0.0.1:8052
2019-10-30 08:11:49 +00:00
```
2019-10-23 10:29:57 +00:00
[1]: https://github.com/ansible/awx
[2]: https://www.ansible.com/tower