centos8安装ansible-awx:9.0.1
为什么要这要贴出来呢,因为这个鬼东西我真的不知道为什么能跑成功,先是在centos7上安装,结果重复多次后成功了,然后重新装一遍,又失败了。。。真的不知道怎么装了,甚至连在centos8上安装的步骤我也是一脸懵逼,完全不知道是怎么成功的,所以你们如果有成功的经验的话可以在评论区讨论下环境:系统:CentOS-8.3.2011-x86_64-minimal.isovm自动装的,我都不知道选了什么,手
·
为什么要这要贴出来呢,因为这个鬼东西我真的不知道为什么能跑成功,先是在centos7上安装,结果重复多次后成功了,然后重新装一遍,又失败了。。。真的不知道怎么装了,甚至连在centos8上安装的步骤我也是一脸懵逼,完全不知道是怎么成功的,所以你们如果有成功的经验的话可以在评论区讨论下
环境:
系统:CentOS-8.3.2011-x86_64-minimal.iso
vm自动装的,我都不知道选了什么,手慢了,直接install
history
1 ip a
2 python
3 python3
4 ip a
5 poweroff
6 cd /etc/yum.repos.d/
7 ls -rlt
8 cat CentOS-Linux-BaseOS.repo
9 yum update
10 poweroff
11 clear
12 python
13 python3
14 yum install -y python3
15 python
16 which python3
17 ln -s /usr/bin/python3 /usr/bin/python
18 pip3
19 which pip3
20 ln -s /usr/bin/pip3 /usr/bin/pip
21 yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo && yum clean all && yum makecache && yum install -y docker-ce docker-ce-cli containerd.io && systemctl enable docker && systemctl start docker && docker --version && echo '{' >> /etc/docker/daemon.json && echo ' "registry-mirrors": ["https://mirror.ccs.tencentyun.com", "https://kuamavit.mirror.aliyuncs.com", "https://docker.mirrors.ustc.edu.cn"]' >> /etc/docker/daemon.json && echo '}' >> /etc/docker/daemon.json && systemctl restart docker && sudo docker login --username=100003876070 ccr.ccs.tencentyun.com
22 wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
23 yum install -y yum-config-manager wget
24 yum install -ywget
25 yum install -y wget
26 wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
27 mv docker-ce.repo /etc/yum.repos.d/
28 yum install -y docker-ce docker-ce-cli containerd.io
29 systemctl stop firewalld.service
30 systemctl disable firewalld.service
31 sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/sysconfig/selinux
32 cat /etc/sysconfig/selinux
33 setenforce 0
34 systemctl enable docker && systemctl start docker
35 docker --version
36 echo '{' >> /etc/docker/daemon.json && echo ' "registry-mirrors": ["https://mirror.ccs.tencentyun.com", "https://kuamavit.mirror.aliyuncs.com", "https://docker.mirrors.ustc.edu.cn"]' >> /etc/docker/daemon.json && echo '}' >> /etc/docker/daemon.json && systemctl restart docker && sudo docker login --username=100003876070 ccr.ccs.tencentyun.com
37 pip
38 curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose && ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose && docker-compose --version
39 pip3 install docker-compose
40 uname -s
41 uname -m
42 curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
43 chmod +x /usr/local/bin/docker-compose && ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose && docker-compose --version
44 git clone -b 9.0.1 git://github.com/ansible/awx.git
45 yum install -y git
46 git clone -b 9.0.1 git://github.com/ansible/awx.git
47 cd /root/awx/installer
48 ansible-playbook -i inventory install.yml -vv
49 yum install -y epel-release ansible
50 yum install -y ansible
51 curl -o /etc/yum.repos.d/CentOS-Linux-Base.repo http://mirrors.tencent.com/repo/centos8_base.repo && curl -o /etc/yum.repos.d/CentOS-Linux-Epel.repo http://mirrors.tencent.com/repo/epel-8.repo
52 yum install -y ansible
53 yum search ansible
54 sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
55 yum search ansible
56 yum install -y ansible
57 ansible-playbook -i inventory install.yml -vv
58 pip install docker-py
59 ansible-playbook -i inventory install.yml -vv
60 pip install docker-compose
61 ansible-playbook -i inventory install.yml -vv
62 pip uninstall docker-py
63 pip uninstall docker
64 pip install docker
65 ansible-playbook -i inventory install.yml -vv
66 echo $?
67 cat inventory
68 ip a
69 history
70 history >test.txt
更多推荐
已为社区贡献1条内容
所有评论(0)