You are on page 1of 1

1 passwd root

2 yum install dnf -y


3 dnf install vim -y
4 vim /etc/ssh/sshd_config
5 systemctl restart sshd
6 amazon-linux-extras install java-openjdk11 -y
7 yum upgrade -y
8 amazon-linux-extras install java-openjdk11 -y
9 yum install wget -y
10 wget -O /etc/yum.repos.d/jenkins.repo
https://pkg.jenkins.io/redhat-stable/jenkins.repo
11 rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
12 yum install fontconfig java-11-openjdk -y
13 java --version
14 python3 -m pip -V
15 pip 21.0.1 from /usr/lib/python3.9/site-packages/pip
16 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
17 python3 get-pip.py --user
18 python3 -m pip install --user ansible
19 python3 -m pip install --user ansible-core==2.12.3
20 python3 -m pip install --upgrade --user ansible
21 ansible --version
22 yum install -y yum-utils
23 yum-config-manager --add-repo
https://download.docker.com/linux/centos/docker-ce.repo
24 yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y
25 systemctl enable -–now docker
26 systemctl enable --now docker
27 docker login
28 ssh-keygen
29 ssh-copy-id root@172.31.12.122
30 cd /root
31 ls
32 docker images
33 mkdir /root/silkplaybook/
34 cd /root/silkplaybook/
35 vi ansible.cfg
36 vi hosts
37 vi silkcityfest.yml
38 ansible-playbook silkcityfest.yml --check
39 vi ansible.cfg
40 ansible-playbook silkcityfest.yml --check
41 cd
42 history
43 history > ansiblesatish.txt

You might also like