安裝AWX


1.安裝最新版python

2.安裝最新版docker

   設置國內docker鏡像源

   curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io

   重啟docker (ubuntu)

   sudo systemctl restart docker.service

3.git clone https://github.com/ansible/awx.git

4.進入到項目目錄,創建虛擬環境

5.pip install docker 

6.pip install docker-compose

7.安裝node  npm

8.進入到項目目錄,執行安裝程序

cd installer

ansible-playbook -i inventory install.yml
# Tail the the awx_task log $ docker logs -f awx_task
當看到以下類似內容后,部署完成
Using /etc/ansible/ansible.cfg as config file
127.0.0.1 | SUCCESS => { "changed": false, "db": "awx" } Operations to perform: Synchronize unmigrated apps: solo, api, staticfiles, messages, channels, django_extensions, ui, rest_framework, polymorphic Apply all migrations: sso, taggit, sessions, sites, kombu_transport_django, social_auth, contenttypes, auth, conf, main Synchronizing apps without migrations: Creating tables... Running deferred SQL... Installing custom SQL... Running migrations: Rendering model states... DONE Applying contenttypes.0001_initial... OK Applying contenttypes.0002_remove_content_type_name... OK Applying auth.0001_initial... OK Applying auth.0002_alter_permission_name_max_length... OK Applying auth.0003_alter_user_email_max_length... OK Applying auth.0004_alter_user_username_opts... OK Applying auth.0005_alter_user_last_login_null... OK Applying auth.0006_require_contenttypes_0002... OK Applying taggit.0001_initial... OK Applying taggit.0002_auto_20150616_2121... OK Applying main.0001_initial... OK

9.訪問127.0.0.1
10.通過docker-compose管理
進入到~/.awx/awxcompose
docker-compose stop 關閉
docker-compose start 啟動


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM