Advertisement
sandervanvugt

ansible4h march21

Mar 22nd, 2021
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.36 KB | None | 0 0
  1. [ansible@control loops]$ history
  2. 1 ls
  3. 2 vim inventory
  4. 3 ansible all -i inventory --list-hosts
  5. 4 ls
  6. 5 vim ansible.cfg
  7. 6 history
  8. 7 cd ..
  9. 8 ls
  10. 9 cd ..
  11. 10 git clone https://github.com/sandervanvugt/ansible-advanced
  12. 11 cd ansible-
  13. 12 cd ansible-advanced/
  14. 13 ls
  15. 14 ./countdown 12
  16. 15 cd ..
  17. 16 ls
  18. 17 cd ansible-3h/
  19. 18 cd install/
  20. 19 ls
  21. 20 history
  22. 21 ansible ansible1.example.com -m command -a who
  23. 22 vim inventory
  24. 23 sudo vim /etc/hosts
  25. 24 cd
  26. 25 cd -
  27. 26 vim ansible.cfg
  28. 27 ssh-copy-id
  29. 28 ssh-keygen
  30. 29 ssh-copy-id ansible1.example.com
  31. 30 ssh-copy-id ansible2.example.com
  32. 31 ssh ansible1.example.com
  33. 32 history
  34. 33 ansible ansible1.example.com -m command -a who
  35. 34 vim ansible.cfg
  36. 35 ssh ansible1.example.com
  37. 36 ssh ansible2.example.com
  38. 37 history
  39. 38 ansible ansible1.example.com -m command -a who
  40. 39 vim user.todo
  41. 40 sudo vim /etc/ansible/ansible.cfg
  42. 41* cd ..A
  43. 42 ansible ansible1.example.com -m command -a who
  44. 43 ls
  45. 44 cd install/
  46. 45 vim ansible.cfg
  47. 46 ls
  48. 47 ansible-doc -l
  49. 48 ansible-doc -l | wc
  50. 49 ansible-doc command
  51. 50 ansible-doc user
  52. 51 ansible all -m command -a "useradd linda"
  53. 52 ansible all -m user -a "name=linda"
  54. 53 vim inventory
  55. 54 ansible-doc user
  56. 55 sudo rpm -qf /usr/lib/python3.6/site-packages/ansible/modules/system/user.py
  57. 56 ansible all -m command -a "rpm -qa| grep ansible"
  58. 57 ansible all -m command -a "rpm -ql | grep ansible"
  59. 58 sudo rpm -qa
  60. 59 sudo rpm -qa | grep ansible
  61. 60 ansible all -m command -a "rpm -qa | grep ansible"
  62. 61*
  63. 62 ansible all -m command -a "rpm -qa | grep bash"
  64. 63 ansible all -m shell -a "rpm -qa | grep bash"
  65. 64 history
  66. 65 echo hello > myfile
  67. 66 md5sum myfile
  68. 67 echo helllloo >>> myfile
  69. 68 echo helllloo >> myfile
  70. 69 md5sum myfile
  71. 70 ls
  72. 71 vim vsftpd.yml
  73. 72 ansible-playbook vsftpd.yml
  74. 73 vim vsftpd.yml
  75. 74 vim inventory
  76. 75 vim vsftpd.yml
  77. 76 ansible-playbook vsftpd.yml
  78. 77 vim vsftpd.yml
  79. 78 ansible all -m setup > ../inventort.txt
  80. 79 less ../inventort.txt
  81. 80 ansible-doc user
  82. 81 vim createuser.yaml
  83. 82 ansible-playbook createuser.yaml
  84. 83 vim createuser.yaml
  85. 84 ansible-playbook createuser.yaml
  86. 85 vim createuser.yaml
  87. 86 ansible-playbook createuser.yaml
  88. 87 ansible all -m command -a "id bob"
  89. 88 ansible-playbook createuser.yaml -e user=james
  90. 89 vim createuser.yaml
  91. 90 ansible-doc user
  92. 91 vim ~/.vimrc
  93. 92 cd ..
  94. 93 ls
  95. 94 cd base
  96. 95 ls
  97. 96 cat variables
  98. 97 cat variables.yml
  99. 98 vim variables.yml
  100. 99 ansible-playbook variables.yml
  101. 100 ls
  102. 101 vim when-test.yml
  103. 102 ansible-playbook when-test.yml
  104. 103 cat inventory
  105. 104 cd ..
  106. 105 less inventort.txt
  107. 106 cd base
  108. 107 grep default *
  109. 108 vim checkip.yaml
  110. 109 ansible-playbook checkip.yaml
  111. 110 vim checkip.yaml
  112. 111 ansible-playbook checkip.yaml
  113. 112 vim checkip.yaml
  114. 113 ls
  115. 114 vim un-ansible.yml
  116. 115 vim un-ansible-loop.yml
  117. 116 ansible-playbook un-ansible-loop.yml
  118. 117 ls
  119. 118 cd host_vars/
  120. 119 ls
  121. 120 cat ansible1.example.com
  122. 121 cd ..
  123. 122 grep package *
  124. 123 vim installpackage.yaml
  125. 124 grep register *
  126. 125 cd ..
  127. 126 ls
  128. 127 cd handlers/
  129. 128 cd ..
  130. 129 grep -R register *
  131. 130 cd loops/
  132. 131 ls
  133. 132 vim registerout.yml
  134. 133 vim conditionalrestart.yml
  135. 134 ansible-playbook conditionalrestart.yml
  136. 135 grep register *
  137. 136 vim copytxt.yml
  138. 137 ansible-playbook copytxt.yml
  139. 138 vim copytxt.yml
  140. 139 ansible-playbook copytxt.yml
  141. 140 sudo visudo
  142. 141 ansible-playbook copytxt.yml
  143. 142 grep register *
  144. 143 ls
  145. 144 rm errorlog
  146. 145 grep register *
  147. 146 vim copytxt.yml
  148. 147 grep register *
  149. 148 vim registerout.yml
  150. 149 ls
  151. 150 vim handlers
  152. 151 vim handlers.yml
  153. 152 touch /tmp/index.html
  154. 153 ansible-playbook handlers.yml
  155. 154 vim handlers.yml
  156. 155 ansible-playbook handlers.yml
  157. 156 vim handlers.yml
  158. 157 ansible all -m file -a "name=/var/www/html/index.html state=absent"
  159. 158 ansible-playbook handlers.yml
  160. 159 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement