IT/LINUX

[ ANSIBLE ] awx install

ssung85 2024. 6. 5. 14:00
728x90

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

정상 로그인 화면

 

 

728x90