安装awx由码头-组成从官方指南。
以这种方式安装awx cli:
pip install "https://github.com/ansible/awx/archive/11.1.0.tar.gz#egg=awxkit&subdirectory=awxkit"检查其配置
# awx config
{
"base_url": "https://127.0.0.1:443",
"token": "",
"use_sessions": false,
"credentials": {
"default": {
"username": "admin",
"password": "password"
}
}
}获取用户列表
# awx --conf.host https://127.0.0.1:443 \
> --conf.username admin --conf.password password \
> --conf.insecure \
> users list
...
There was a network error of some kind trying to reach https://127.0.0.1:443.
You might need to specify (or double-check) --conf.host
HTTPSConnectionPool(host='127.0.0.1', port=443): Max retries exceeded with url: /api/ (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))默认情况下,它是在没有SSL的情况下安装的。如何更改base_url
我检查了认证文件,由于https问题不能通过auth。
从文档中,这种方式可以生成文档:
# pip install sphinx sphinxcontrib-autoprogram
~ TOWER_HOST=https://awx.example.org TOWER_USERNAME=example TOWER_PASSWORD=secret make clean html
~ cd build/html/ && python -m http.server
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ..但是当我运行时,它得到了这个错误
make: *** No rule to make target `clean'. Stop.在哪里运行这个命令?
发布于 2020-09-23 11:54:08
这个在我的系统上起作用了:
--conf.host .主机http://127.0.0.1:80
它列出了所有可用选项,没有任何错误。
https://stackoverflow.com/questions/61399752
复制相似问题