1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-18 04:58:52 +02:00

update awx

This commit is contained in:
kev 2020-06-22 19:41:22 +08:00
parent 77dc4a118e
commit 94dc534507

View File

@ -13,6 +13,7 @@ data
│ └── example │ └── example
│ └── playbook.yml │ └── playbook.yml
├── redis ├── redis
│ ├── redis_socket (mode:777)
│ └── redis.conf │ └── redis.conf
└── settings └── settings
├── SECRET_KEY ├── SECRET_KEY
@ -23,15 +24,17 @@ data
## up and running ## up and running
``` ```bash
$ mkdir -m 777 -p data/redis/redis_socket
$ docker-compose up -d $ docker-compose up -d
$ docker-compose exec web bash $ docker-compose exec web bash
>>> awx-manage inventory_import --inventory-name=xxx --source=/path/to/inventory.ini >>> awx-manage inventory_import --inventory-name=xxx --source=/path/to/inventory.ini
INFO Reading Ansible inventory source: /path/to/inventory.ini INFO Reading Ansible inventory source: /path/to/inventory.ini
INFO Loaded 1 groups, 30 hosts INFO Loaded 1 groups, 30 hosts
INFO Inventory import completed for (xxx - 13) in 1.0s INFO Inventory import completed for (xxx - 13) in 1.0s
>>> chown -R nginx:nginx /var/lib/nginx # XXX: https://github.com/ansible/awx/issues/5230
>>> exit >>> exit
$ curl http://127.0.0.1:8052 $ curl http://admin:password@127.0.0.1:8052
``` ```
[1]: https://github.com/ansible/awx [1]: https://github.com/ansible/awx