sandervanvugt

Untitled

Sep 14th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. [root@control ~]# history
  2. 1 yum install python epel-release -y
  3. 2 yum install python38 epel-release -y
  4. 3 yum install -y ansible
  5. 4 vim /etc/hosts
  6. 5 ping ansible2
  7. 6 ping ansible1
  8. 7 exit
  9. 8 cat /etc/os-release
  10. 9 free -m
  11. 10 df -h
  12. 11 yum install -y vim bash-completion git
  13. 12 su - ansible
  14. 13 useradd ansible
  15. 14 passwd ansible
  16. 15 su - ansible
  17. 16 exit
  18. 17 history
  19.  
  20. USER HISTORY
  21. 1 git clone https://github.com/sandervanvugt/ansible-3h
  22. 2 cd ansible-3h/
  23. 3 ls
  24. 4 history
  25. 5 su -
  26. 6 ssh-keygen
  27. 7 ssh-copy-id ansible1
  28. 8 ssh-copy-id ansible2
  29. 9 ssh ansible1
  30. 10 ssh ansible2
  31. 11 pwd
  32. 12 ls
  33. 13 cd install/
  34. 14 ls
  35. 15 cat /etc/hosts
  36. 16 ls
  37. 17 pwd
  38. 18 vim inventory
  39. 19 vim ansible.cfg
  40. 20 ansible all -i inventory --list-hosts
  41. 21 ansible -m command -a "useradd bob"
  42. 22 ansible all -m command -a "useradd bob"
  43. 23 vim ansible.cfg
  44. 24 ansible --help
  45. 25 exit
  46. 26 history
  47. 27 ssh root@ansible1
  48. 28 ansible all -m command -a "useradd bob"
  49. 29 pwd
  50. 30 cd ansible-3h/install/
  51. 31 ansible all -m command -a "useradd bob"
  52. 32 vim ansible
  53. 33 ansible all -m raw -a "echo ansible ALL=(ALL) NOPASSWD:ALL > /etc/sudoers.d/ansible" -u root -k
  54. 34 ansible all -m raw -a 'echo ansible ALL=\(ALL\) NOPASSWD:ALL > /etc/sudoers.d/ansible' -u root -k
  55. 35 history
  56. 36 ansible all -m command -a "useradd bob"
  57. 37 history
  58. 38 cd ..
  59. 39 git clone https://github.com/sandervanvugt/luth
  60. 40 cd luth/
  61. 41 ./countdown 12
  62. 42 ansible ansible1.example.com -m command -a who
  63. 43 sudo vim /etc/ansible/hosts
  64. 44 su -
  65. 45 exit
  66. 46 id
  67. 47 sudo vim /etc/ansible/hosts
  68. 48 sudo vim /etc/ansible/ansible.cfg
  69. 49 cd ansible-3h/
  70. 50 cd install/
  71. 51 ansible ansible1.example.com -m command -a who
  72. 52 ansible ansible1.example.com -m shell -a who
  73. 53 ansible ansible1.example.com -m raw -a who
  74. 54 ansible ansible1.example.com -m command -a "rpm -qa | grep completion"
  75. 55 ansible ansible1.example.com -m shell -a "rpm -qa | grep completion"
  76. 56 ansible-doc -l | less
  77. 57 ansible-doc -l | wc
  78. 58 ansible -m command -a "useradd lisa"
  79. 59 ansible all -m command -a "useradd lisa"
  80. 60 ansible all -m user -a "name=lisa"
  81. 61 ansible all -m user -a "name=linda"
  82. 62 history
  83. 63 ansible-doc user
  84. 64 ansible all -m user -a "name=linda state=absent remove=yes"
  85. 65 vim vsftpd.yml
  86. 66 ansible-playbook vsftpd.yml
  87. 67 vim vsftpd.yml
  88. 68 ansible-playbook vsftpd.yml
  89. 69 vim vsftpd.yml
  90. 70 ansible-playbook vsftpd.yml
  91. 71 cd ..
  92. 72 ls
  93. 73 cd base
  94. 74 ls
  95. 75 cd ../ftp/
  96. 76 ls
  97. 77 cd ../install/
  98. 78 ls
  99. 79 vim makeuser.yml
  100. 80 ansible-playbook makeuser.yml
  101. 81 vim makeuser.yml
  102. 82 ansible-playbook makeuser.yml
  103. 83 history
  104. 84 ansible all -m user -a "name=linda state=absent remove=yes"
  105. 85 ansible-playbook makeuser.yml
  106. 86 vim makeuser.yml
  107. 87 vim ~/.vimrc
  108. 88 history
Add Comment
Please, Sign In to add comment