-
Notifications
You must be signed in to change notification settings - Fork 148
/
Copy pathansible-day-01
32 lines (32 loc) · 992 Bytes
/
ansible-day-01
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
ANSIBLE MAIN SERVER:
sudo -i
sudo amazon-linux-extras install ansible2 -y
yum install python python-pip python-level openssl -y
vi /etc/ansible/hosts
vi /etc/ansible/ansible.cfg
=============================================================================================================
ALL NODES (MAIN, DEV AND TEST NODES)
useradd ansible
passwd ansible
visudo
vim /etc/ssh/sshd_config
systemctl restart sshd
systemctl status sshd
su - ansible
hostname -i
==============================================================================================================
ANSIBLE MAIN SERVER:
ssh-keygen
ssh-copy-id [email protected]
ssh '[email protected]'
ctr + d
ssh-copy-id [email protected]
ssh '[email protected]'
ctr + d
ssh-copy-id [email protected]
ssh '[email protected]'
ctr + d
ssh-copy-id [email protected]
ssh '[email protected]'
ctr + d
==============================================================================================================