Advertisement
sandervanvugt

my-title

Jul 12th, 2021
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.16 KB | None | 0 0
  1. 1 sudo vim /etc/ansible/hosts
  2. 2 sudo dnf install -y vim git
  3. 3 git clone https://github.com/sandervanvugt/ansibleinthreeweeks
  4. 4 cd ansibleinthreeweeks/
  5. 5 ls
  6. 6 cd cisco/
  7. 7 ls
  8. 8 cat inventory
  9. 9 cd ../windows/
  10. 10 cat inventory
  11. 11 ansible --version
  12. 12 cd
  13. 13 ansible --version
  14. 14 vim /etc/ansible/ansible.cfg
  15. 15 cd -
  16. 16 ansible --version
  17. 17 ansible-doc -l
  18. 18 ansible-doc -l | wc
  19. 19 cd..
  20. 20 cd ..
  21. 21 cd
  22. 22 ansible all -m ping
  23. 23 ssh-keygen
  24. 24 ssh-copy-id rocky
  25. 25 ssh-copy-id fedora
  26. 26 ssh-copy-id ubuntu
  27. 27 ssh-copy-id centos7
  28. 28 ssh-copy-id rhel8
  29. 29 ansible all -m ping
  30. 30 cat inventory
  31. 31 ansible rhelfamily -m command -a "useradd lisa"
  32. 32 ansible rhelfamily -m user -a "name=linda"
  33. 33 history
  34. 34 cat ansible.cfg
  35. 35 ansible ubuntu -K -m package -a "name=nmap"
  36. 36 cat /etc/hosts
  37. 37 ansible ubuntu -K -m package -a "name=nmap"
  38. 38 ssh-copy-id ubuntu
  39. 39 ansible ubuntu -K -m package -a "name=nmap"
  40. 40 history
  41. 41 git clone https://github.com/sandervanvugt/ansible-3h
  42. 42 cd ansible-3h/
  43. 43 ls
  44. 44 cd install/
  45. 45 ls
  46. 46 cd ../..
  47. 47 find . -name "install_and*"
  48. 48 cd ansible-3h/
  49. 49 cd install/
  50. 50 vim vsftpd.yml
  51. 51 ansible-playbook vsftpd.yml
  52. 52 ls
  53. 53 cat inventory
  54. 54 ansible-playbook -i ../../ansibleinthreeweeks/inventory vsftpd.yml
  55. 55 cp ../../ansibleinthreeweeks/inventory .
  56. 56 vim inventory
  57. 57 ansible-playbook vsftpd.yml
  58. 58 vim inventory
  59. 59 ansible-playbook vsftpd.yml
  60. 60 vim vsftpd.yml
  61. 61 ansible-playbook vsftpd.yml
  62. 62 cat vsftpd.yml
  63. 63 ansible-doc yum
  64. 64 ansible-doc copy
  65. 65 vim vsftpd.yml
  66. 66 ansible-playbook --syntax-check vsftpd.yml
  67. 67 ansible-playbook vsftpd.yml
  68. 68 ansible-playbook --syntax-check vsftpd.yml
  69. 69 vim vsftpd.yml
  70. 70 ansible-playbook --syntax-check vsftpd.yml -v
  71. 71 ansible-playbook --syntax-check vsftpd.yml -vv
  72. 72 ansible-playbook --syntax-check vsftpd.yml -vvv
  73. 73 ansible-playbook vsftpd.yml -vvv
  74. 74 ansible-playbook vsftpd.yml -vvvv
  75. 75 ansible-doc user
  76. 76 ansible-doc yum
  77. 77 ansible-doc -l | grep ufw
  78. 78 ansible-doc -l | grep firewall
  79. 79 ansible-doc ufw
  80. 80 cd ../..
  81. 81 find . -name "run_and_test_httpd.yaml"
  82. 82 ls
  83. 83 git clone https://github.com/sandervanvugt/ansible-advanced
  84. 84 find . -name "run_and_test_httpd.yaml"
  85. 85 cd ansible-3h/
  86. 86 cd base
  87. 87 ls
  88. 88 vim installpackage.yaml
  89. 89 ip a
  90. 90 cd..
  91. 91 cd ..
  92. 92 ;s
  93. 93 ls
  94. 94 cd ansible-3h/
  95. 95 cd base/
  96. 96 ls
  97. 97 vim variables.yml
  98. 98 vim installpackage.yaml
  99. 99 ansible-playbook installpackage.yaml
  100. 100 vim inventory
  101. 101 ansible-playbook installpackage.yaml
  102. 102 vim inventory
  103. 103 cat installpackage.yaml
  104. 104 ansible-playbook --help | less
  105. 105 ansible-playbook installpackage.yaml -e package=nmap
  106. 106 ls
  107. 107 vim variables.yml
  108. 108 ansible-playbook variables.yml
  109. 109 vim variables.yml
  110. 110 ansible centos7 -m setup | less
  111. 111 ls
  112. 112 head installpackage.yaml
  113. 113 head variables.yml
  114. 114 ansible-doc -l | grep facts
  115. 115 ansible-doc -l | grep facts | wc
  116. 116 ls
  117. 117 vim thefacts.yaml
  118. 118 ansible-playbook thefacts.yaml
  119. 119 vim thefacts.yaml
  120. 120 ansible-playbook thefacts.yaml
  121. 121 ls
  122. 122 vim when-test.yml
  123. 123 ansible-playbook when-test.yml
  124. 124 vim when-test.yml
  125. 125 vim inventory
  126. 126 vim when-test.yml
  127. 127 ansible-playbook when-test.yml
  128. 128 vim when-test.yml
  129. 129 ansible-playbook when-test.yml
  130. 130 history
  131. 131 cd
  132. 132 vim paster
  133. 133 vim .bashrc
  134. 134 history -d 135
  135. 135 history -d 137
  136. 136 history -d 138
  137. 137 ls
  138. 138 chmod +x paster
  139. 139 history
  140. 140 history -d 134
  141. 141 history -d 135
  142. 142 history -d 140-
  143. 143 history -d 140-144
  144. 144 history -d 140
  145. 145* hist
  146. 146 history -d 134
  147. 147 history
  148. 148 history -d 138
  149. 149 history -d 137
  150. 150 history
  151. 151 chmod +x paster
  152. 152 ./paster
  153. 153 vim .bashrc
  154. 154 source .bashrc
  155. 155 ./paster
  156. 156 ./paster test
  157. 157 vim paster
  158. 158 ./paster "my-title" "$(history)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement