-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCommandHistory.sh
88 lines (88 loc) · 2.14 KB
/
CommandHistory.sh
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[root@ip-172-31-43-25 kubernetes-multinode-cluster-ansible-aws]# history
1 cd /
2 free -m
3 free -m -h
4 cd /etc/yum.repos.d/
5 ls
6 cd /kubernetes-multinode-cluster-ansible-aws/
7 ls
8 ansible-playbook rhel_common.yaml
9 cat inventory
10 vi key.pem
11 chmod 400 key.pem
12 ansible-playbook rhel_common.yaml
13 cat inventory
14 ansible-playbook rhel_master.yaml
15 cat join-command
16 cat inventory
17 yum install haproxy
18 vi /etc/haproxy/haproxy.cfg
19 cp /etc/haproxy/haproxy.cfg .
20 ls
21 mv haproxy.cfg haproxy.j2
22 vi haproxy.j2
23 vi create_instance.yml
24 ansible-playbook create_instance.yml
25 ansible-playbook create_instance.yml --ask-vault-password
26 cat inventory
27 vi /etc/haproxy/haproxy.cfg
28 vi haproxy.j2
29 netstat -tnlp
30 vi httpd.yml
31 vi index.html
32 yum install httpd -y
33 cp /etc/httpd/conf/httpd.conf .
34 yum remove httpd
35 ls
36 vi httpd.conf
37 ansible-playbook httpd.yml
38 vi httpd.yml
39 ansible-playbook httpd.yml
40 ansible all -m ping
41 ansible all -m command -a "rpm -q httpd"
42 ls
43 ansible-galaxy init my-k8s-configure
44 ls
45 cd my-k8s-configure/
46 ls
47 cd tasks/
48 ls
49 vi main.yml
50 cd ..
51 ls
52 cp ../inventory.j2 templates/
53 cp ../haproxy.j2 templates/
54 cd templates/
55 ls
56 cd ..
57 ls
58 cp ../index.html files/
59 cp ../httpd.conf files/
60 cd vars/
61 ls
62 vi main.yml
63 cd ..
64 ls
65 cat README.md
66 ls
67 cd meta/
68 ls
69 vi main.yml
70 cd ../..
71 ansible-galaxy role install iam-surya369.ec2-create
72 ls
73 cd /root/.ansible/roles/iam-surya369.ec2-create
74 ls
75 cd tasks/
76 ls
77 vi main.yml
78 cd /
79 ansible all -m setup
80 cd kubernetes-multinode-cluster-ansible-aws/
81 ansible all -m setup
82 ansible k8s-master -m setup
83 ansible-playbook httpd.
84 ansible-playbook httpd.yml
85 ls
86 vi create_instance.yml
87 history