9.1 Ansible 图形界面-AWX
生活随笔
收集整理的這篇文章主要介紹了
9.1 Ansible 图形界面-AWX
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
概覽
Ansible AWX是Ansible Tower的開源版本,其關系類似RedHat和CentOS的關系
安裝
0 目標
- 在單臺2C4G,CentOS7機器上安裝Ansible AWX 17.0.0
- 安裝完畢之后,打開本地監聽的80端口訪問,我這里即http://192.168.31.101:80
- 登錄使用的是默認賬號密碼,即 admin / password
1 安裝依賴
#1.1 安裝ansible yum install ansible#1.2 安裝docker 參考 https://blog.csdn.net/xys2015/article/details/109370082#1.3 安裝docker-compose 參考 https://blog.csdn.net/xys2015/article/details/109656791#1.4 安裝 docker-compose Python module yum install python3-pip python3 -m pip install -i https://mirrors.aliyun.com/pypi/simple docker-compose2 克隆項目并修改配置文件
#2.1 克隆或下載項目(下面三種方法任選其一) git clone -b 17.0.0 https://github.com/ansible/awx.git http://dld.as4k.top/17.0.0.zip https://github.com/ansible/awx/archive/17.0.0.zip#2.2 解壓并修改配置文件 [root@192_168_31_101 /data0]# unzip -q 17.0.0.zip && cd awx-17.0.0/installer [root@192_168_31_101 /data0/awx-17.0.0/installer]# cp inventory inventory.bak [root@192_168_31_101 /data0/awx-17.0.0/installer]# diff inventory inventory.bak #配置文件的改動只是取消一個注釋 107c107 < admin_password=password --- > # admin_password=password3 執行安裝
[root@192_168_31_101 /data0/awx-17.0.0/installer]# ansible-playbook -i inventory install.yml #安裝需要等待一段時間,安裝完畢后,會以容器的方式啟動,相關鏡像參考如下 [root@192_168_31_101 /data0/awx-17.0.0/installer]# docker ps -a --no-trunc CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 7a036a4051a ansible/awx:17.0.0 "/usr/bin/tini -- /usr/bin/launch_awx_task.sh" 16 hours ago Up 16 hours 8052/tcp awx_task 385b2022fe0 ansible/awx:17.0.0 "/usr/bin/tini -- /bin/sh -c /usr/bin/launch_awx.sh" 16 hours ago Up 16 hours 0.0.0.0:80->8052/tcp awx_web 6240521af43 postgres:12 "docker-entrypoint.sh postgres" 16 hours ago Up 16 hours 5432/tcp awx_postgres eb8720489fe redis "docker-entrypoint.sh /usr/local/etc/redis/redis.conf" 16 hours ago Up 16 hours 6379/tcp awx_redis [root@192_168_31_101 /data0/awx-17.0.0/installer]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE ansible/awx 17.0.0 bc44280672f9 13 days ago 1.41GB postgres 12 898ffae1aafe 2 weeks ago 314MB redis latest 621ceef7494a 3 weeks ago 104MB4 登錄
簡單使用
如下截圖,點擊小火箭🚀,啟動一個hello-world測試
參考資料
#1 項目官方地址 https://github.com/ansible/awx#2 安裝指南 https://github.com/ansible/awx/blob/devel/INSTALL.md https://www.cnblogs.com/mcsiberiawolf/p/12727229.html#3 Ansible 圖形界面對比 https://www.toutiao.com/i6894128030201938436/總結
以上是生活随笔為你收集整理的9.1 Ansible 图形界面-AWX的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 如何面对产品失败?
- 下一篇: Alpha865qqz勒索病毒解密