Ansible AWX Git : https://github.com/ansible/awx
Ansible 설치 매뉴얼 : https://github.com/ansible/awx/blob/devel/INSTALL.md
- 기본 설정
[root@localhost ~]# vi /etc/sysconfig/selinux
SELINUX=disabled
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# systemctl disable firewalld
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@localhost ~]# dnf -y update
[root@localhost ~]# hostnamectl set-hostname awx
reboot
- docker 설치
[root@awx ~]# yum install -y yum-utils
[root@awx ~]# yum-config-manager --add-repo ttps://download.docker.com/linux/centos/docker-ce.repo
Adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
[root@awx ~]# yum install docker-ce docker-ce-cli containerd.io -y
[root@awx ~]# systemctl start docker
[root@awx ~]# systemctl enable docker
[root@awx ~]# systemctl status docker
[root@awx ~]# docker ps
- Ansible, Python 설치
Ansible 설치
[root@awx ~]# yum -y install epel-release
[root@awx ~]# yum -y install ansible
Python 설치
[root@awx ~]# yum -y install python-pip
[root@awx ~]# yum -y install python3-pip
- Ansible AWX Ver 17 설치
1. Make working directory (root)
[root@awx ~]# mkdir /work [root@awx ~]# cd /work
Source 복제
[root@awx ~]# lsgit clone -b 17.1.0 https://github.com/Ansible/awx.git
2. inventory 파일 수정
초기 관리자 User / Password 설정. (웹 로그인시 필요)
[root@awx ~]# cd /work/awx/installer
[root@awx ~]# vi inventory
admin_password=password
Running Install Playbook
[root@awx ~]# ansible-playbook -i inventory install.yml
#error 발생
[root@awx installer]# pip3 install --upgrade pip
[root@awx installer]# pip install docker-compose
[root@awx ~]# ansible-playbook -i inventory install.yml
[root@awx installer]# docker ps
3. Ansible AWX 웹 접속
접속 URL : http://server_ip
초기계정 : admin/password
정상 로그인 화면
'IT > LINUX' 카테고리의 다른 글
linux xfs 파일 시스템 용량 확장 (0) | 2024.07.12 |
---|---|
rocky8 ntp 서버 만들기 (0) | 2024.05.16 |
Rocky 에서 3TB 이상 디스크 추가 하기 (0) | 2024.04.16 |
rocky8 윈도우 공유 폴더 만들기(samba, cifs) (0) | 2024.04.02 |
linux magaraid gui 설치 방법 (0) | 2023.11.09 |