-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy pathansible-cmd-history.txt
147 lines (147 loc) · 3.78 KB
/
ansible-cmd-history.txt
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
ll
git clone
git clone [email protected]:manikcloud/DevOps-Tutorial.git
ssh-keygen
cat ~/.ssh/id_rsa.pub
git clone [email protected]:manikcloud/DevOps-Tutorial.git
ll
cd DevOps-Tutorial/
code .
cd DevOps-Tutorial/6-ansible-terraform/6.8-tf-ec2-provisioning/ansible/
ansible-playbook ping.yaml
ansible all -m shell -a "apt upda
ansible all -m shell -a "apt update -y" become true
ansible all -m shell -a "apt update -y"
ansible all -m shell -a "apt update -y" -b=yes
ansible all -m shell -a "apt update -y" -b true
ansible all -m shell -a "apt update -y" -b=true
ansible-playbook ping.yaml
code
ll
cd DevOps-Tutorial/
ls
mv 6-ansible 6-ansible-terraform
ll
cd 6-ansible-terraform/
ls
mkdir 6.6.1-tf-local-file
cd 6.6.1-tf-local-file/
terraform
terraform -version
vim main.tf
terraform init
cleaf
terraform plan
terraform apply
ll
cat index.html
git add . && git commit-am"adding tf local"
git add . && git commit -am"adding tf local"
git push
resource "local_file" "foo" {
git push
cd ..
git add . && git commit -am"adding tf local" && git push
git config --global user.name "varun"
git add . && git commit -am"adding tf local" && git push
ll
ansible
ansible --version
ansible -m ping localhost
ansible -m ping localhost -v
ansible -m ping localhost -vv
ansible -m ping localhost -vvv
ansible -m ping localhost -vvvv
cd 6-ansible-terraform/6.8-tf-ec2-provisioning/
ll
cd ..
ll
ls
cd 6.8-tf-ec2-provisioning/
ls
ansible all -i '3.87.250.203,' -m ping -u ubuntu --private-key ../deployer
ansible all -i '3.87.250.203,' -m ping -u ubuntu --private-key deployer
chmod 400 deployer
ansible all -i '3.87.250.203,' -m ping -u ubuntu --private-key deployer
ansible all -i '3.87.250.203,' -m ping -u ubuntu --private-key deployer -v
ansible all -i '3.87.250.203,' -m ping -u ubuntu --private-key deployer -vv
ansible all -i '3.87.250.203,' -m ping -u ubuntu --private-key deployer -vvvv
ansible all -i '3.87.250.203, 54.198.128.135, 107.22.117.179' -m ping -u ubuntu --private-key deployer
ansible all -i ' 54.198.128.135' -m ping -u ubuntu --private-key deployer
ls
ansible all -i '54.198.128.135' -m ping -u ubuntu --private-key deployer
vim ~/.ssh/known_hosts
ansible all -i '54.198.128.135' -m ping -u ubuntu --private-key deployer
ansible all -i '3.87.250.203,' -m ping -u ubuntu --private-key deployer
ansible all -i '54.198.128.135,' -m ping -u ubuntu --private-key deployer
ansible all -i '107.22.117.179,' -m ping -u ubuntu --private-key deployer
ll
cd ansible/
ll
cd ..
ansible all -i ansible/inventory.ini -m ping
cd -
ll
ansible all -i inventory.ini -m ping
ansible all -i inventory.ini -m shell -a "la -l"
ansible all -i inventory.ini -m shell -a "ls -l"
ansible all -i inventory.ini -m shell -a "pwd"
ansible all -i inventory.ini -m shell -a "touch index.txt"
ansible all -i inventory.ini -m shell -a "ls -l"
ansible -m ping localhost -v
ansible -m ping localhost -vv
cd ../../..
ansible -m ping localhost -vv
vim /etc/ansible/ansible.cfg
cd -
ansible all -m shell -a "ls -l"
ansible all -m shell -a "rm -rf index.txt"
ansible all -m shell -a "ls -l"
ansible all -m setup
ll
ansible-playbook ping.yaml
ansible all -m shell -a "ls -l"
ansible-playbook ping.yaml
ansible-doc -l
ansible-doc apt
q q
ansible-doc aptans
cd 6-ansible-terraform/6.8-tf-ec2-provisioning/
terraform plan
terraform apply
terraform output
cd 6-ansible-terraform/6.7-S3-Bucket-Using-Terraform/
ll
terraform ini
terraform init
terraform plan
terraform apply
terraform plan
terraform apply
terraform plan
terraform apply
cd ..
git add .
git commit -am "adding creds"
git push
ll
cd 6-ansible-terraform/
ll
cd 6.8-tf-ec2-provisioning/
ll
cd ..
cd -
terraform init
terraform plan
terraform apply
terraform plan
terraform apply
terraform destroy
git push
cd ..
git add .
git commit -am"adding cred.tf"
git push
cd DevOps-Tutorial/
code .
history | cut -c 8- > ansible-cmd-history.txt