Skip to content

Commit e0f1c45

Browse files
author
lerndevops
authored
Create TowerSetup
1 parent 8a3b1ae commit e0f1c45

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

ansible/TowerSetup

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
1 git clone https://github.com/ansible/awx
2+
2 git clone https://github.com/lerndevops/labs
3+
3 cd labs/
4+
4 cd ansible/
5+
5 ./installAnsible.sh
6+
6 apt-get update
7+
9 apt install python3-pip
8+
10 apt-get update
9+
11 sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
10+
12 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
11+
13 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
12+
$(lsb_release -cs) \
13+
stable"
14+
14 sudo apt-get update
15+
15 apt-get install docker-ce docker-ce-cli containerd.io
16+
16 docker -v
17+
18 apt install python-pip
18+
19 pip install docker-compose
19+
22 cd ../..
20+
23 cd awx/
21+
24 ls
22+
25 cd installer/
23+
26 ls
24+
28 ansible-playbook -i inventory install.yml
25+
29 docker ps
26+

0 commit comments

Comments
 (0)