sandervanvugt

ansible 3W day2

Mar 21st, 2022
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.80 KB | None | 0 0
  1. ansible@control plugins]$ history
  2. 1 exit
  3. 2 ssh ansible@tower
  4. 4 ansible --version
  5. 5 ssh 192.168.29.190
  6. 6 sudo -i
  7. 7 history
  8. 8 exit
  9. 9 history
  10. 10 exit
  11. 11 ssh-agent ~/.ssh/id_rsa
  12. 12 ls -l ~/.ssh/
  13. 13 ./countdown 12
  14. 14 ssh-add ~/.ssh/id_rsa
  15. 15 ssh-add -l
  16. 16 ssh ansible2
  17. 17 sudo visudo
  18. 18 cat inventory
  19. 19 ssh-copy-id tower
  20. 20 ssh-copy-id control
  21. 21 vim inventory
  22. 22 ls
  23. 23 vim secure.yaml
  24. 24 ansible-doc lineinfile
  25. 25 vim secure.yaml
  26. 26 ansible-doc lineinfile
  27. 27 vim secure.yaml
  28. 28 ansible-playbook secure -K
  29. 29 ansible-playbook secure.yaml -K
  30. 30 ansible all -a "ls -l /root"
  31. 31 vim ansible.cfg
  32. 32 ansible all -a "ls -l /root"
  33. 33 ansible all -a "ls -l /root" -K
  34. 34 ansible all -a "ls -l /root"
  35. 35 history
  36. 36 cat secure.yaml
  37. 37 ls
  38. 38 cd filters/
  39. 39 ls
  40. 40 cd ..
  41. 41 find . -name "vartypetest.yaml"
  42. 42 cd plugins/
  43. 43 vim vartypetest.yaml
  44. 44 ansible-playbook vartypetest.yaml
  45. 45 vim vartypetest.yaml
  46. 46 ansible-playbook vartypetest.yaml
  47. 47 vim vartypetest.yaml
  48. 48 ansible-playbook vartypetest.yaml
  49. 49 ../countdown 19
  50. 50 ls
  51. 51 cd ../fil
  52. 52 cd ../filters/
  53. 53 ls
  54. 54 vim int-filter.yaml
  55. 55 ansible-playbook int-filter.yaml
  56. 56 vim int-filter.yaml
  57. 57 ansible-playbook int-filter.yaml
  58. 58 vim int-filter.yaml
  59. 59 ansible-playbook int-filter.yaml
  60. 60 vim storage-filter.yaml
  61. 61 ansible-playbook storage-filter.yaml
  62. 62 cp ../inventory .
  63. 63 cp ../ansible.cfg .
  64. 64 ansible-playbook storage-filter.yaml
  65. 65 ansible-playbook storage-filter.yaml -K
  66. 66 vim storage-filter.yaml
  67. 67 ansible-playbook storage-filter.yaml -K
  68. 68 vim password_hash.yaml
  69. 69 ansible-doc user
  70. 70 ansible ansible2 -m user -a "name=lisa password=secret"
  71. 71 ansible ansible2 -a "cat /etc/shadow"
  72. 72 ansible-playbook password-hash.yaml
  73. 73 ls
  74. 74 ansible-playbook password_hash.yaml
  75. 75 ansible ansible2 -a "cat /etc/shadow"
  76. 76 ls
  77. 77 cd ..
  78. 78 find . -name "network.yaml"
  79. 79 cd plugins/
  80. 80 vim network.yaml
  81. 81 history | grep git
  82. 82 pwd
  83. 83 ls
  84. 84 vim dict2items.yaml
  85. 85 ../countdown 12
  86. 86 sudo dnf install -y redis
  87. 87 sudo systemctl enable --now redis
  88. 88 sudo pip3 install redis
  89. 89 ls
  90. 90 vim ansible.cfg
  91. 91 sudo systemctl status redis
  92. 92 ansible all -m setup
  93. 93 vim inventory
  94. 94 ansible all -m setup
  95. 95 ls
  96. 96 cd ..
  97. 97 find -name "checkcache.py"
  98. 98 cd factcache/
  99. 99 ls
  100. 100 ./checkcache.py
  101. 101 vim inventory
  102. 102 ansible all -m setup
  103. 103 vim ansible.cfg
  104. 104 ./checkcache.py
  105. 105 vim checkfacts.yaml
  106. 106 ansible-playbook checkfacts.yaml
  107. 107 vim checkfacts.yaml
  108. 108 sudo vim /etc/ansible/ansible.cfg
  109. 109 ansible --version
  110. 110 cd ../plugins/
  111. 111 ls
  112. 112 vim ansible.cfg
  113. 113 cd ../windows/
  114. 114 vim inventory
  115. 115 ansible-inventory --yaml -i inventory --list --output winventory.yaml
  116. 116 vim winventory.yaml
  117. 117 ansible-doc -t inventory -l
  118. 118 ansible-doc -t callback -l
  119. 119 cd ../plugins/
  120. 120 ls
  121. 121 vim ansible.cfg
  122. 122 ls
  123. 123 cat makeusers
  124. 124 cat makeusers.yaml
  125. 125 ansible-playbook makeusers.yaml
  126. 126 ansible-doc -t lookup -l
  127. 127 vim readkeys.yaml
  128. 128 mkdir student
  129. 129 tree
  130. 130 vim readkeys.yaml
  131. 131 ansible-playbook readkeys.yaml
  132. 132 ansible ansible2 -a "tree /home/ansible"
  133. 133 ansible ansible2 -a "ls -R /home/ansible"
  134. 134 ansible ansible2 -a "ls -Ra /home/ansible"
  135. 135 ansible-playbook readkeys.yaml
  136. 136 vim readkeys.yaml
  137. 137 history
  138.  
Advertisement
Add Comment
Please, Sign In to add comment