sandervanvugt

Untitled

Aug 25th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.44 KB | None | 0 0
  1. [ansible@control webservers]$ history
  2. 1 ssh-keygen
  3. 2 ssh-copy-id ansible1
  4. 3 ssh-copy-id ansible2
  5. 4 ssh ansible2
  6. 5 exit
  7. 6 sudo git install https://github.com/sandervanvugt/rhce8-live
  8. 7 sudo git clone https://github.com/sandervanvugt/rhce8-live
  9. 8 sudo git clone https://github.com/sandervanvugt/rhce8-book
  10. 9 cd rhce8-live/
  11. 10 ls
  12. 11 ./countdown 13
  13. 12 ansible --version
  14. 13 sudo yum install -y ansible
  15. 14 ansible --version
  16. 15 ls
  17. 16 history
  18. 17 cd lesson2/
  19. 18 ls
  20. 19 vim inventory
  21. 20 ansible -i inventory all --list-hosts
  22. 21 ansible all --list-hosts
  23. 22 mv inventory minventory
  24. 23 sudo mv inventory minventory
  25. 24 ansible all --list-hosts
  26. 25 ansible all -i minventory --list-hosts
  27. 26 cat ansible.cfg
  28. 27 sudo vim /etc/ansible/hosts
  29. 28 ansible file --list-hosts
  30. 29 ansible -i inventory file --list-hosts
  31. 30 ansible -i minventory file --list-hosts
  32. 31 cat minventory
  33. 32 ansible -i minventory web --list-hosts
  34. 33 cat minventory
  35. 34 vim ansible.cfg
  36. 35 sudo vim /etc/ansible/hosts
  37. 36 sudo vim /etc/ansible/ansible.cfg
  38. 37 ls
  39. 38 vim ansible.cfg
  40. 39 ls -l
  41. 40 cd ..
  42. 41 sudo chown -R ansible:ansible *
  43. 42 ls -l
  44. 43 cd lesson
  45. 44 cd lesson2/
  46. 45 ls
  47. 46 vim ansible.cfg
  48. 47 ansible web --list-hosts
  49. 48 vim ansible.cfg
  50. 49 ansible --version
  51. 50 ls
  52. 51 cd ..
  53. 52 ./countdown 12
  54. 53 ansible all -m user -a "name=lisa"
  55. 54 pwd
  56. 55 ls
  57. 56 cd lesson2/
  58. 57 cat ansible.cfg
  59. 58 ls
  60. 59 ansible all -m user -a "name=lisa"
  61. 60 ansible all -m command -a "id lisa"
  62. 61 ansible all -a "id lisa"
  63. 62 ansible-doc -l
  64. 63 ansible-doc -l | wc
  65. 64 ansible all -m command -a "useradd linda"
  66. 65 ansible all -m command -a "id linda"
  67. 66 ansible all -m command -a "useradd linda"
  68. 67 ansible all -m user -a "name=linda"
  69. 68 ansible-doc package
  70. 69 ansible-doc yum
  71. 70 ansible-doc dnf
  72. 71 ansible all -m ping
  73. 72 ansible all -m service -a "name=httpd state=started"
  74. 73 ansible all -m command -a "rpn -qa | grep python"
  75. 74 ansible all -m command -a "rpm -qa | grep python"
  76. 75 ansible all -m shell -a "rpm -qa | grep python"
  77. 76 ansible all -m copy -a 'content="hello world" dest=/etc/motd'
  78. 77 ansible all -m command -a "cat /etc/motd"
  79. 78 ansible --help
  80. 79 historyt
  81. 80 history
  82. 81 ansible all -m copy -a 'content="hello world" dest=/etc/motd' -C
  83. 82 ansible all -m copy -a 'content="hello moon" dest=/etc/motd' -C
  84. 83 ../countdown 12
  85. 84 vim ~/.vimrc
  86. 85 cd ../lesson4
  87. 86 ls
  88. 87 vim vsftpd.yml
  89. 88 ansible-doc copy
  90. 89 vim vsftpd.yml
  91. 90 ansible-playbook vsftpd.yml
  92. 91 ls -lrt
  93. 92 vim vsftpd.yml
  94. 93 ansible-playbook vsftpd.yml
  95. 94 vim vsftpd.yml
  96. 95 ansible-playbook vsftpd.yml
  97. 96 ansible-playbook --syntax-check vsftpd-err.yml
  98. 97 vim vsftpd-err.yml
  99. 98 ansible-playbook -C vsftpd.yml
  100. 99 ansible-playbook -vvvv vsftpd.yml
  101. 100 ansible-playbook -vv vsftpd.yml
  102. 101 vim web-setup-and-test.yml
  103. 102 ansible-doc firewalld
  104. 103 vim web-setup-and-test.yml
  105. 104 ansible-playbook web-setup-and-test.yml
  106. 105 history
  107. 106 cd ../lesson5/
  108. 107 ls
  109. 108 pwd
  110. 109 vim user.yml
  111. 110 ansible-playbook user.yml
  112. 111 vim user.yml
  113. 112 vim user.yml -e user=frank
  114. 113 ansible-playbook user.yml -e user=franck
  115. 114 sudo vim /etc/ansible/ansible.cfg
  116. 115 vim user.yml
  117. 116 ansible-playbook user.yml -e user=anna
  118. 117 vim user.yml
  119. 118 ansible-playbook user.yml
  120. 119 vim user.yml
  121. 120 ansible-playbook user.yml -e user=anna
  122. 121 ssh-copy-id localhost
  123. 122 ansible-playbook user.yml -e user=anna
  124. 123 history
  125. 124 cd ..
  126. 125 ls
  127. 126 git clone https://github.com/sandervanvugt/ansible-advanced
  128. 127 cd ansible-advanced/
  129. 128 cd windows/
  130. 129 ls
  131. 130 vim inventory
  132. 131 cd ../../rhce8-live/lesson5/
  133. 132 ls
  134. 133 cd webservers/
  135. 134 ls
  136. 135 vim site.yml
  137. 136 cd group_vars/
  138. 137 ls
  139. 138 cat ../inventory
  140. 139 cat lamp
  141. 140 cd ..
  142. 141 mkdir host_vars
  143. 142 cd host_vars/
  144. 143 vim ansible1.example.com
  145. 144 cd ..
  146. 145 vim site.yml
  147. 146 ansible-playbook site.yml
  148. 147 vim site.yml
  149. 148 tree
  150. 149 ansible localhost -m yum -a "name=tree state=installed"
  151. 150 tree
  152. 151 history
Add Comment
Please, Sign In to add comment