-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhel.txt
2004 lines (2004 loc) · 58.4 KB
/
hel.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1069 cd
1070 cd MY_TERRAFROM/AWS_DEVOPS/
1071 cd provisioner/
1072 ll
1073 code .
1074 terraform apply
1075 ssh -i private.pem 54.188.246.79@ubuntu
1076 ssh -i private.pem [email protected]
1077 terraform destory
1078 terraform destroy
1079 ll
1080 terraform apply
1081 ssh -i private.pem [email protected]"
1082 ssh -i private.pem [email protected]
1083 terraform destroy
1084 cd ../s3_bucket/
1085 ll
1086 cat main.tf
1087 cd
1088 cat .bashrc
1089 cd MY_TERRAFROM/AWS_DEVOPS/
1090 cd s3_bucket/
1091 ll
1092 cta main.tf
1093 cat main.tf
1094 cd ../
1095 cd practice/
1096 ll
1097 cd Terraform/
1098 ll
1099 cd hashicorp-certified-terraform-associate/
1100 cd 10-Terraform-Modules/
1101 ll
1102 cd 10-01-Terraform-Modules-Basics/
1103 ll
1104 cd terraform-manifests
1105 ll
1106 cat *
1107 ll;
1108 ;
1109 l;
1110 l; ll;
1111 l; l
1112 cat *; ll;
1113 printf("hello");
1114 printf "hello\n"
1115 4
1116 cd MY_TERRAFROM/
1117 cd AWS_DEVOPS/
1118 ll
1119 mkdir TerraformWorkspace
1120 cd TerraformWorkspace/
1121 ll
1122 mkdir projectA
1123 cd projectA/
1124 ll
1125 code .
1126 cd ../../EC2/
1127 ll
1128 cat main.tf
1129 cd ../TerraformWorkspace/
1130 cd projectA/
1131 ll
1132 cd ..
1133 ll
1134 mkdir projectB
1135 ll
1136 cd projectB/
1137 ll
1138 code .
1139 cd ..
1140 terraform workspace new projectA
1141 terraform workspace list
1142 terraform console
1143 terraform plan
1144 terraform workspace new projectB
1145 terraform workspace list
1146 terraform plan
1147 terraform init
1148 terraform workspace select projectA
1149 terraform init
1150 cd project
1151 cd projectA/
1152 terraform init
1153 cd ../
1154 terraform workspace select projectA
1155 terraform init
1156 code .
1157 touch main.tf variable.tf
1158 terraform init
1159 terraform plan
1160 terraform init
1161 terraform plan
1162 terraform apply
1163 terraform destroy
1164 ll
1165 cd MY_TERRAFROM/
1166 cd AWS_DEVOPS/
1167 ll
1168 cd provisioner/
1169 ll
1170 cat yba.sh
1171 cd MY_TERRAFROM/AWS_DEVOPS/
1172 ll
1173 mkdir RDS
1174 cd RDS
1175 code .
1176 terraform init
1177 cd ../EC2/
1178 cat main.tf
1179 cd ../RDS/
1180 ll]
1181 l
1182 terraform init
1183 exit
1184 exit
1185 cd .ssh/
1186 ll
1187 cd
1188 terraform init
1189 exit
1190 terraform init
1191 cd MY_TERRAFROM/AWS_DEVOPS/RDS/
1192 terraform init
1193 terraform plan
1194 terraform init
1195 clear
1196 ls
1197 terraform get --update=true
1198 cd MY_TERRAFROM/AWS_DEVOPS/
1199 cd RDS/
1200 ll
1201 terraform get --update=true
1202 terraform init
1203 cd MY_TERRAFROM/
1204 cd AWS_DEVOPS/
1205 cd EC2/
1206 ll
1207 cp .terraform/ ../RDS/.
1208 cp .terraform/ ../RDS/ .
1209 cp -r .terraform/ ../RDS/ .
1210 cp -r .terraform/ RDS/
1211 cd ../RDS/
1212 ll
1213 terraform init
1214 cd MY_TERRAFROM/
1215 ls
1216 cd AWS_DEVOPS/
1217 ls
1218 cd RDS/
1219 ls
1220 cd MY_TERRAFROM/
1221 cd AWS_DEVOPS/
1222 ll
1223 ll
1224 terraform apply
1225 ssh -i private.pem [email protected]
1226 terraform destroy
1227 cd MY_TERRAFROM/
1228 ls
1229 cd AWS_DEVOPS/
1230 clear
1231 ls
1232 cd RDS/
1233 ls
1234 ls -a
1235 code .
1236 terraform init
1237 terraform plan
1238 code .
1239 terraform plan
1240 terraform apply
1241 cd ../EC2/
1242 cat main.tf
1243 cd ../RDS/
1244 terraform apply
1245 cd ../provisioner/
1246 cat main.tf
1247 cd ../RDS/
1248 ll
1249 terraform apply
1250 terraform init -upgrade
1251 terraform plan
1252 terraform apply
1253 terraform init -upgrade
1254 terraform plan
1255 terraform apply
1256 ll
1257 p/home/dopadm/.ssh/id_ed25519
1258 cd MY_TERRAFROM/AWS_DEVOPS/
1259 cd RDS/
1260 terraform apply
1261 ll
1262 ssh -i private.pem [email protected]\
1263 ssh -i private.pem [email protected]
1264 ssh -i private.pem [email protected]
1265 ssh -i private [email protected]
1266 ssh -i "private.pem" [email protected]
1267 ssh -i private.pem [email protected]
1268 chmod 0400 private.pem
1269 ssh -i private.pem [email protected]
1270 chmod 400 private.pem
1271 ssh -i private.pem [email protected]
1272 ssh -i private.pem [email protected]
1273 ssh -i "tf-key-new.pem" [email protected]
1274 ssh -i "private.pem" [email protected]
1275 ssh -i private.pem [email protected]
1276 ssh -i private.pem [email protected]
1277 terraform destroy
1278 cd ../
1279 mkdir AutoScaling
1280 cd AutoScaling/
1281 ll
1282 code .
1283 terraform INIT
1284 terraform init
1285 cd ../EC2/
1286 cat main.tf
1287 cd ../AutoScaling/
1288 terraform init
1289 terraform plan
1290 cd MY_TERRAFROM/AWS_DEVOPS/AutoScaling/
1291 terraform plan
1292 terraform apply
1293 terraform destroy
1294 aws ec2 describe-snapshots --query 'Snapshots[*].{ID:SnapshotId,Size:VolumeSize,State:State,StartTime:StartTime}'
1295 aws ec2 describe-snapshots
1296 aws ec2 describe-snapshots --region us-west-2
1297 vi aws.sh
1298 cd MY_TERRAFROM/
1299 cd AWS_DEVOPS/
1300 cd AutoScaling/
1301 ll
1302 cat *
1303 https://aws.amazon.com/getting-started/hands-on/migrate-rdsmysql-to-auroramysql/?ref=gsrchandson
1304 code .
1305 bash aws.sh
1306 bash aws.sh
1307 vi aws.sh
1308 bash aws.sh
1309 vi aws.sh
1310 bash aws.sh
1311 rm -rf aws.sh
1312 lls
1313 ll
1314 exit
1315 ssh localhost
1316 cd MY_TERRAFROM/
1317 ll
1318 git add .
1319 git commit - m "terraform"
1320 git commit -m "terraform"
1321 git push
1322 git push --set-upstream origin main
1323 ll
1324 git status
1325 git log
1326 git tag
1327 git lfs install
1328 git lfs track "*.largefileextension"
1329 git add .gitattributes
1330 git commit -m "Track large files with Git LFS"
1331 git push
1332 sudo apt-get install git-lfs
1333 git lfs track "*.largefileextension"
1334 git add .gitattributes
1335 git commit -m "Track large files with Git LFS"
1336 git push --set-upstream origin main
1337 git lfs --version
1338 git config --global http.proxy http://proxyuser:proxypassword@proxyaddress:proxyport
1339 git config --global https.proxy https://proxyuser:proxypassword@proxyaddress:proxyport
1340 git push --set-upstream origin main
1341 git push
1342 git push --set-upstream origin main
1343 git config --global --unset http.proxy
1344 git config --global --unset https.proxy
1345 git push --set-upstream origin main
1346 cd MY_TERRAFROM/AWS_D
1347 cd MY_TERRAFROM/AWS_DEVOPS/
1348 ll
1349 cd EC2/
1350 ll
1351 cat main.tf
1352 cd
1353 ssh-keygen
1354 cd
1355 cd .ssh/
1356 ll
1357 cp id_ed25519 id_ed25519.pub ~/
1358 cp id_ed25519 id_ed25519.pub ~/MY_TERRAFROM/AWS_DEVOPS/my-terraform-module/ .
1359 cp -r id_ed25519 id_ed25519.pub ~/MY_TERRAFROM/AWS_DEVOPS/my-terraform-module/ .
1360 cp -r id_ed25519 id_ed25519.pub ~/MY_TERRAFROM/AWS_DEVOPS/my-terraform-module/
1361 cd
1362 cd MY_TERRAFROM/AWS_D
1363 cd MY_TERRAFROM/AWS_DEVOPS/my-terraform-module/
1364 ll
1365 ssh 44.245.216.40
1366 ssh [email protected]
1367 ssh -i id_ed25519 [email protected]
1368 exit
1369 cd MY_TERRAFROM/
1370 ll
1371 cd AWS_DEVOPS/
1372 ll
1373 mkdir my-terraform-module
1374 cd my-terraform-module/
1375 ll
1376 code .
1377 terraform main.tf fmt
1378 terraform fmt main.tf
1379 terraform fmt
1380 terraform init
1381 ll
1382 chmod 400 id_ed25519
1383 ll
1384 chmod 777 id_ed25519
1385 ll
1386 chmod 777 id_ed25519.pub
1387 ll
1388 terraform init
1389 terraform plan
1390 terraform validate
1391 cd ../
1392 mkdir my-terraform-project
1393 cd my-terraform-project
1394 code .
1395 terraform init
1396 terraform plan
1397 cd ../my-terraform-module/
1398 ll
1399 code .
1400 cd ../my-terraform-project/
1401 ll
1402 terraform plan
1403 terraform apply
1404 ssh 44.245.216.40
1405 ssh [email protected]
1406 ssh -i id [email protected]
1407 terraform destory
1408 terraform destroy
1409 terraform fmt
1410 terraform apply
1411 terraform destroy
1412 terraform show
1413 terraform show module.example_instance.aws_instance.example
1414 exit
1415 ll *.git
1416 git fetch
1417 cd MY_TERRAFROM/
1418 ll
1419 cd .git/
1420 ll
1421 cd ../
1422 rm -rf .git
1423 git init
1424 git remote add origin https://github.com/Anand24dsu/Terraform_Devops.git
1425 git branch main
1426 git branch master main
1427 git branch -master main
1428 git branch --master main
1429 git branch -m master main
1430 git init
1431 git init
1432 git add .
1433 git init
1434 git add
1435 git add .
1436 rm -f .git/index.lock
1437 git add .
1438 git commit -m "anand"
1439 git push
1440 git push --set-upstream origin main
1441 git push origin main
1442 git push -u origin main
1443 git fetch origin main
1444 ll
1445 git add .
1446 git commit -m "anand"
1447 git push
1448 git push -u origin main
1449 git fetch origin main
1450 git push
1451 git push --set-upstream origin main
1452 git config --global push.autoSetupRemote true
1453 git push --set-upstream origin main
1454 git pull
1455 git push
1456 cd MY_TERRAFROM/AWS_DEVOPS/
1457 cd EC2/
1458 ssh -i id_ed25519 [email protected]
1459 vi /etc/hostname
1460 sudo reboot
1461 ssh -i id_ed25519 [email protected]
1462 cd MY_TERRAFROM/
1463 cd AWS_DEVOPS/
1464 ll
1465 mkdir aws_ami_data
1466 cd aws_ami_data/
1467 ll
1468 code .
1469 terraform init
1470 terraform plan
1471 cd
1472 cd .ssh/
1473 ll
1474 l
1475 ssh -i ~/.ssh/id_ed25519.pub [email protected]
1476 ssh -i ~/.ssh/id_ed25519 [email protected]
1477 terraform fmt
1478 terraform plan
1479 terraform apply
1480 terraform destriy
1481 terraform destroy
1482 terraform apply
1483 terraform destroy
1484 terraform apply
1485 terraform destroy
1486 terraform apply
1487 ssh [email protected]
1488 ssh -i [email protected]
1489 sudo su
1490 ssh -i ~/.ssh/id_ed25519 [email protected]
1491 ssh -i ~/.ssh/id_ed25519.p [email protected]
1492 ssh -i "id_rsa" [email protected]
1493 terraform destroy
1494 exit
1495 cd MY_TERRAFROM/
1496 cd AWS_DEVOPS/
1497 ll
1498 mkdir count.index
1499 cd count.index/
1500 ll
1501 code .
1502 cd ../EC2/
1503 cat main.tf
1504 terraform init
1505 terraform plan
1506 terraform apply
1507 terraform destroy
1508 terraform apply
1509 terraform destroy
1510 terraform apply
1511 terraform destroy
1512 terraform apply
1513 terraform destroy
1514 terraform apply
1515 exit\
1516 printenv > "/tmp/tmp-1265PGDYMZD6y4Xv.txt"
1517 terraform init
1518 terraform plan
1519 terraform apply
1520 terraform destory
1521 terraform destroy
1522 terraform apply
1523 terraform destroy
1524 terraform apply
1525 terraform destroy
1526 terraform apply
1527 terraform destroy
1528 cd MY_TERRAFROM/AWS_DEVOPS/
1529 ll
1530 mkdir for_each
1531 cd for_each/
1532 ll
1533 code .
1534 cd ../count.index/
1535 cat main.tf
1536 c
1537 cd MY_TERRAFROM/
1538 cd AWS_DEVOPS/
1539 ll
1540 cd provisioner/
1541 ll
1542 code .
1543 cd ../EC2/
1544 ll
1545 code .
1546 cd ../
1547 ll
1548 cd count.index/
1549 code .
1550 cd ..
1551 cd for_each/
1552 code .
1553 ifconfig
1554 netstat
1555 netstat -a
1556 netstat -na
1557 cd
1558 mkdir ansible_practice
1559 cd ansible_practice/
1560 sudo apt install podman
1561 podman -help
1562 podman network list
1563 podman network --help
1564 podman network ls
1565 podman images
1566 podman image -help
1567 clear
1568 docker images
1569 docker --help
1570 docker pull mysql
1571 docker images
1572 docker images rm 5568fddd4f66
1573 docker rm 5568fddd4f66
1574 docker images rm 5568fddd4f6
1575 docker images
1576 docker rm --help
1577 docker rm mysql
1578 docker rmi 5568fddd4f66
1579 docker images
1580 docker --help
1581 docker ps
1582 docker inspect mysql
1583 docker rm mysql
1584 docker pull mysql
1585 docker inspect mysql
1586 docker ps
1587 docker images
1588 docker rmi 5568fddd4f66
1589 docker images
1590 docker pull rapidfort/yugabyte
1591 docker images
1592 docker rmi 8cae5031bc00
1593 docker pull yugabytedb/yugabyte:2024.2.2.0-b70
1594 docker images
1595 docker ps -a
1596 docker ps
1597 docker --help
1598 docker images
1599 docker rmi afd5a1146637
1600 docker images
1601 docker inspect afd5a1146637
1602 docker pull yugabytedb/yugabyte:2024.2.2.0-b70
1603 docker inspect afd5a1146637
1604 docker --help
1605 docker pull yugabytedb/yugabyte:2024.2.2.0-b70
1606 docker run yugabytedb/yugabyte:2024.2.2.0-b70
1607 docker run -d --name yb-tserver -p 7200:7200 -p 9100:9100 -p 5433:5433 -p 9042:9042 yugabytedb/yugabyte:2024.2.2.0-b70 bin/yugabyted start --base_dir=/home/yugabyte --daemon=false
1608 docker images
1609 docker pull nginx
1610 docker images
1611 docker inspect b52e0b094bc0
1612 docker run -itd -P sleep 1000
1613 docker exec -it d25
1614 docker exec --help
1615 docker ps
1616 docker run nginx:latest
1617 docker run nginx:latest
1618 docker run nginx:latest sleep 1000
1619 docker run nginx:latest sleep 1
1620 docker ps -a
1621 docker exec a7d11fdd68af sleep 10
1622 docker exec lucid_joliot
1623 docker images
1624 docker kill a7d11fdd68af
1625 # Stop all containers running nginx:latest
1626 docker ps -a -q --filter "ancestor=nginx:latest" | xargs -I {} docker stop {}
1627 # Remove all containers running nginx:latest
1628 docker ps -a -q --filter "ancestor=nginx:latest" | xargs -I {} docker rm {}
1629 docker ps -a
1630 # Stop all containers with the specified IDs
1631 docker stop e94583c45703 779653a4bcce
1632 # Remove all containers with the specified IDs
1633 docker rm e94583c45703 779653a4bcce
1634 docker ps -a
1635 docker iamges
1636 docker images
1637 docker rmi afd5a1146637 b52e0b094bc0
1638 docker images
1639 ll
1640 l
1641 ll
1642 ls -lter
1643 ls -ltr
1644 mkdir first
1645 cd first/
1646 ll
1647 cd ../
1648 docker pull nginx
1649 docker run -d -P nginx
1650 docker ps
1651 docker exec -d -P nginx sleep 10
1652 docker exec -it /bin/bash
1653 docker exec -it 06cf06634af8 /bin/bash
1654 docker inspect 06cf06634af8
1655 docker help
1656 docker ps
1657 docker ps -a
1658 docker ps
1659 docker inspect 06cf06634af8
1660 docker ps
1661 docker ps -a
1662 docker kill --help
1663 docker run -d -p 50000:80 nginx
1664 docker ps -a
1665 docker run -d -P nginx
1666 docker ps -a
1667 docker kill *
1668 docker kill .
1669 docker kill 255952393ef0
1670 docker ps -a
1671 docker ps
1672 docker kill 06cf06634af8
1673 docker kill a40b6ce54952
1674 docker ps
1675 docker ps -a
1676 docker images
1677 docker rmi b52e0b094bc0
1678 docker ps -a
1679 docker rmi b52e0b094bc0
1680 docker rmi -fb52e0b094bc0
1681 docker rmi -f b52e0b094bc0
1682 docker ps -a
1683 docker images
1684 cd first/
1685 docker images
1686 docker ps -a
1687 # Stop all containers with the specified IDs (if they were still running)
1688 docker stop 255952393ef0 a40b6ce54952 06cf06634af8
1689 # Remove all containers with the specified IDs
1690 docker rm 255952393ef0 a40b6ce54952 06cf06634af8
1691 docker ps -a
1692 ll
1693 cd ..
1694 cd first/
1695 docker network list
1696 docker ps -a
1697 awk
1698 docker echo "gagana"
1699 docker run echo "gagana"
1700 docker run -it echo "gagana"
1701 ansible
1702 cat /etc/issue
1703 lsb_release -a
1704 hostnamectl
1705 hostname
1706 hostnamedocker run -it echo "gagana"
1707 Unable to find image 'echo:latest' locally
1708 docker: Error response from daemon: pull access denied for echo, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
1709 See 'docker run --help'.c
1710 lsb_release -a
1711 ls
1712 cat /etc/os-release
1713 ansible -m ping
1714 docker run -it echo "gagana"
1715 Unable to find image 'echo:latest' locally
1716 docker: Error response from daemon: pull access denied for echo, repository does not exist or may require 'docker lo
1717 date
1718 ipconfig
1719 ifconfig
1720 cd
1721 vi /etc/host.conf
1722 vi /etc/host
1723 vi /etc/hostname
1724 l;
1725 cd ansible_practice/
1726 l;
1727 l; ps ;
1728 ls ; ls -ltr; ps -a ;
1729 histroy
1730 history
1731 ansible --help
1732 cp /mnt/c/Users/Dell/Downloads/envsetup.sh .
1733 ll
1734 rm -rf first/
1735 ll
1736 bash envsetup.sh
1737 ssh -i [email protected]
1738 ssh [email protected]
1739 ssh [email protected]
1740 ssh [email protected]
1741 ll
1742 docker ps -a
1743 docker images
1744 docker inspect alpine ubuntu cetos
1745 docker images
1746 docker inspect alpine ubuntu centos
1747 docker network list
1748 docker network ls
1749 docker network ps
1750 docker container ls
1751 code .
1752 ssh [email protected]
1753 ssh [email protected]
1754 ssh [email protected]
1755 hostnamectl
1756 cd ansible_practice/
1757 ll
1758 docker ps
1759 docker --help
1760 ansible -m ping -i iniventory.ini all
1761 ansible -m ping -i iniventory.ini all 192.168.1.101
1762 ansible all -i inventory.ini -m ping
1763 ansible -m ping -i iniventory.ini all 192.168.1.102
1764 ansible -m setup -i iniventory.ini all
1765 ansible -m setup -i iniventory.ini all 192.168.1.102
1766 ansible -m setup -i iniventory.ini all 192.168.1.102
1767 ansible -m setup -i iniventory.ini all
1768 ansible -m ping -i iniventory.ini all
1769 ll
1770 pip install ansible
1771 python3 -m venv myenv
1772 .\myenv\Scripts\activate
1773 ll
1774 ansible -inventory -i iniventory.ini all
1775 ansible all -i inventory.ini -m ping
1776 ansible-inventory -i inventory.ini --list
1777 ansible-inventory -i inventory.ini all
1778 ansible-inventory -i inventory.ini --list
1779 ansible-inventory -i inventory.ini
1780 ansible-inventory -i inventory.ini --list
1781 ansible-inventory -i iniventory.ini --list
1782 ssh-keygen -f '/home/dopadm/.ssh/known_hosts' -R '192.168.1.103'
1783 ssh-keygen -f '/home/dopadm/.ssh/known_hosts' -R '192.168.1.101'
1784 ssh-keygen -f '/home/dopadm/.ssh/known_hosts' -R '192.168.1.102'
1785 ansible -m ping -i iniventory.ini all
1786 cd /etc/
1787 mkdir ansible
1788 sudo mkdir ansible
1789 cd ansible
1790 code .
1791 ll
1792 vi ansible.cfg
1793 ll
1794 pws
1795 pwd
1796 cd
1797 cd ansible_practice/
1798 ll
1799 ansible -m ping -i iniventory.ini all
1800 cd /etc/
1801 cd ansible/
1802 ll
1803 code .
1804 sudo code .
1805 vi ansible.cfg
1806 sudo su
1807 cd
1808 cd ansible_practice/
1809 ansible -m ping -i iniventory.ini all
1810 cd /etc/ansible/
1811 ll
1812 cat ansible.cfg
1813 cd
1814 cd ansible_practice/
1815 ll
1816 rm myenv/
1817 rm myenv/.
1818 rm -rf myenv/.
1819 rm -rf myenv
1820 ll
1821 python -m venv myenv
1822 # Activate the virtual environment
1823 myenv\Scripts\activate
1824 #ll
1825 ll
1826 python -m venv myenv
1827 python3 -m venv myenv
1828 myenv\Scripts\activate
1829 source myenv/bin/activate
1830 ll
1831 cd practice/
1832 cd
1833 cd /etc/ansible/
1834 sudo cp /home/dopadm/
1835 sudo cp /home/dopadm/ansible_practice/iniventory.ini .
1836 sudo vi host
1837 exit
1838 cd ansible_practice/
1839 ansible -m ping -i inventory.ini -u root all
1840 sudo su
1841 cd ansible_practice/
1842 ansible -m ping -i iniventory.ini all
1843 cd
1844 cd .ssh/
1845 ll
1846 cat known_hosts
1847 cat known_hosts.old
1848 cd
1849 cd ansible_practice/
1850 ll
1851 lls
1852 pip install ansible
1853 python
1854 python 3
1855 python3
1856 ansible host -m ping
1857 ansible host -m ping -i
1858 ansible host -m ping all
1859 ansible host -m ping
1860 ansible all -m ping
1861 ansible-inventory --list
1862 ansible all -m ping -i iniventory.ini
1863 ansible all -m ping -i iniventory.ini all
1864 ansible all -m ping -i iniventory.ini.
1865 ansible all -m ping -i iniventory.ini
1866 ll
1867 ansible myhosts -m ping -i inventory.ini
1868 ansible host -m ping -i inventory.ini
1869 ansible hosts -m ping -i inventory.ini
1870 ansible host -m ping -i inventory.ini
1871 ansible host -m ping -i inventory.ini all
1872 exit
1873 cd
1874 cd ansible_practice/
1875 ll
1876 ansible-inventory -i inventory.ini --list
1877 ansible-inventory -i iniventory.ini --list
1878 code
1879 code .
1880 ansible-inventory --list
1881 ansible-inventory -i iniventory.ini --list
1882 ansible-inventory -i inventory.ini
1883 ansible-inventory -i inventory.ini
1884 ansible-inventory -i inventory.ini --list
1885 ansible myhosts -m ping -i inventory.ini
1886 ansible host -m ping -i inventory.ini
1887 ansible host -m ping -i inventory.ini
1888 code .
1889 cd /etc/ansible/
1890 ll
1891 cd ../
1892 cd
1893 cd ansible_practice/
1894 ll
1895 ansible host -m ping -i inventory.ini
1896 ansible host -m ping -i inventory.ini all
1897 ansible -m inventory.ini all
1898 ansible -m ping -i inventory.ini -u root all
1899 docker exec -it /bin/bash
1900 docker exec -it vm2
1901 ssh [email protected]
1902 ansible -m ping -i inventory.ini -u root all
1903 exit
1904 ansible 192.168.1.102 -m ping
1905 sudo vi /etc/ansible/host
1906 ansible -m ping -i inventory.ini -u root all
1907 ansible 192.168.1.102 -m ping -vvv
1908 code .
1909 ansible -m ping -i group.yml
1910 ansible -m ping -i group.yml db
1911 ansible -m ping -i group.yml app
1912 ansible -m ping -i group.yml db
1913 ansible -m ping -i group.yml web
1914 ansible -m ping -i inventory.ini -u root all
1915 ssh [email protected]
1916 ansible -m ping -i inventory.ini -u root all
1917 ssh [email protected]
1918 sudo vi /etc/host
1919 sudo vi /etc/ansible/host
1920 ansible -m ping -i inventory.ini -u root all
1921 ssh [email protected]
1922 ansible -m ping -i inventory.ini -u root all
1923 ssh [email protected]
1924 ansible -m ping -i inventory.ini -u root all
1925 ssh [email protected]
1926 exit
1927 /bin/python3 /home/dopadm/.vscode-server/extensions/ms-python.python-2025.0.0-linux-x64/python_files/printEnvVariablesToFile.py /home/dopadm/.vscode-server/extensions/ms-python.python-2025.0.0-linux-x64/python_files/deactivate/bash/envVars.txt
1928 pip install python-terraform
1929 /home/dopadm/terrafrom_withpy/.venv/bin/python /home/dopadm/terrafrom_withpy/main.py
1930 pip install python-terraform
1931 /home/dopadm/terrafrom_withpy/.venv/bin/python /home/dopadm/terrafrom_withpy/main.py
1932 /home/dopadm/terrafrom_withpy/.venv/bin/python /home/dopadm/terrafrom_withpy/terraform_ec2.py
1933 cd terrafrom_withpy/
1934 pip install python-terraform
1935 terraform init
1936 exit
1937 mkdir terrafrom_withpy
1938 cd terrafrom_withpy/
1939 code .
1940 source .venv/bin/activate
1941 python3 terraform_ec2.py
1942 terraform init
1943 exit
1944 pip install terraformpy
1945 mkdir tfpy
1946 cd tf
1947 cd tfpy/
1948 code .
1949 pip install terraformpy
1950 brew install terraform # (Mac) OR sudo apt install terraform (Linux)
1951 ll
1952 source .venv/bin/activate
1953 pip install terraformpy
1954 ssh-keygen -t rsa -b 4096 -f my-key -N ""
1955 ll
1956 python manage.py
1957 pip install json
1958 pip install jsoncode
1959 pip install subprocess
1960 pip install -r req.txt
1961 pip install jsonlib
1962 pip install subprocess.run
1963 pip install jsonlib
1964 pip install ujson # or orjson
1965 pip install jsonlib
1966 pip install json2json
1967 pip install json2python-models
1968 pip install python-easy-json
1969 pip install subprocess32
1970 python manage.py
1971 python3 manage.py
1972 python3 infra
1973 python3 infra.py
1974 python3 manage.py
1975 python infra.py
1976 python3 infra.py
1977 terraform init
1978 aws ec2 describe-security-groups --group-names allow_ssh --region us-west-2
1979 terraformpy > main.tf.json
1980 python3 infra
1981 python3 infra.py
1982 terraformpy > main.tf.json
1983 terraform init
1984 docker ps -a
1985 docker ps
1986 docker start b5bf5fe090cc
1987 docker start d60
1988 docker start b5b
1989 docker ps
1990 docker start 52
1991 docker ps
1992 docker stop 52 d60 b5b
1993 docker ps
1994 cd ansible_practice/
1995 ll
1996 cat envsetup.sh
1997 code .
1998 cat envsetup.sh
1999 bash envsetup.sh
2000 docker kill
2001 docker kill vm1 vm2 vm3
2002 docker rm vm1 vm2 vm3
2003 bash envsetup.sh
2004 ssh [email protected]
2005 vi /home/dopadm/.ssh/known_hosts
2006 history |grep "ssh"
2007 ssh [email protected]
2008 ssh [email protected]
2009 ssh [email protected]
2010 ansible -m ping all
2011 ansible -m ping inventory.ini all
2012 ansible -m ping -i inventory.ini all
2013 ssh [email protected]
2014 ls
2015 ansible -m ping -i inventory.ini all
2016 ls
2017*
2018 ansible -m ping -i inventory.ini all
2019 ansible -m user -a 'name=user1' all
2020 ansible -m user -i inventory.ini -a 'name=user1' all
2021 ansible -m user -a "name=user1" all
2022 ansible -m -i inventory.ini user -a "name=user1" all
2023 ansible -m user -a 'name=user1 update_password=always password={{user1pwd|password_hash('sha512')}}'
2024 ansible -m -i inventory.ini user -a 'name=user1 update_password=always password={{user1pwd|password_hash('sha512')}}'
2025 ansible -m user -i inventory.ini -a "name=user1 update_password=always password='{{ user1pwd | password_hash('sha512') }}'"
2026 ansible -m user -i inventory.ini -a "name=user1 update_password=always password='{{ user1pwd | password_hash('sha512') }}'" all
2027 ansible -m -i inventory.ini user -a 'name=user1 update_password=always password={{user1pwd|password_hash('sha512')}}' all
2028 ansible -m user -i inventory.ini -a 'name=user1 update_password=always password={{user1pwd|password_hash('sha512')}}' all
2029 ansible -m user -i inventory.ini -a 'name=user1 update_password=always password={{user1pwd|password_hash("sha512")}}' all
2030 ansible -m user -i inventory.ini -a "name=user1 update_password=always password={{ user1pwd | password_hash('sha512') }}" all
2031 ansible -m user -i inventory.ini -a 'name=user1 update_password=always password={{user1pwd|password_hash("sha512")}}' all
2032 ansible -m user -i inventory.ini -a "name=user1 update_password=always password={{'user1pwd'|passwo
rd_hash('sha512')}}" all
2033 ansible -m user -i inventory.ini -a "name=user1 update_password=always password={{'user1pwd'|passwo
rd_hash('sha512')}}" all
2034 ansible all -m user -i inventory.ini -a "name=user1 update_password=always password={{ 'user1pwd' | password_hash('sha512') }}"
2035 ssh [email protected]
2036 ssh [email protected]
2037 ssh [email protected]
2038 ssh [email protected]
2039 ssh [email protected]
2040 ssh [email protected]
2041 ssh [email protected]
2042 ssh [email protected]
2043 cd /etc/ansible/
2044 ll
2045 cat host
2046 sudo vi host
2047 ll
2048 chmod 777 ansible.cfg
2049 sudo chmod 777 ansible.cfg
2050 ll
2051 ansible -m ping all
2052 cd .
2053 cd
2054 cd ansible_practice/
2055 ll
2056 ansible -m ping all
2057 ansible -m ping host all
2058 cd /etc/ansible/
2059 ll
2060 mv host hosts
2061 sudo mv host hosts
2062 ll
2063 cat hosts
2064 cd
2065 cd ansible_practice/
2066 ansible -m ping all