sandervanvugt

Untitled

May 29th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. USER ON TOWER
  2. 1 sudo poweroff
  3. 2 sudo -i
  4. 3 su -
  5. 4 ssh-keygen
  6. 5 ssh-copy-id ansible1
  7. 6 sudo vim /etc/hosts
  8. 7 ssh-copy-id ansible1
  9. 8 ssh-copy-id ansible2
  10. 9 ssh ansible2
  11. 10 free -m
  12. 11 df -h
  13. 12 lscpu
  14. 13 cat /etc/redhat-release
  15. 14 getenforce
  16. 15 setenforce permissive
  17. 16 sudo setenforce permissive
  18. 17 sudo systemctl status firewalld
  19. 18 ls
  20. 19 history
  21. 20 git clone https://github.com/sandervanvugt/rhce8-live
  22. 21 cd rhce8-live/
  23. 22 ./countdown 12
  24. 23 ./countdown 13
  25. 24 history
  26.  
  27. ROOT ON TOWER
  28. 1 ip a
  29. 2 cd /home/ansible/
  30. 3 ls
  31. 4 cat license_9aa73d54050441819fe14afe8cd5b919.txt
  32. 5 tar xvf ansible-tower-setup-latest-2.tar
  33. 6 cd ansible-tower-setup-3.6.3-1/
  34. 7 ls
  35. 8 vim inventory
  36. 9 less setup.sh
  37. 10 ./setup.sh
  38. 11 free -m
  39. 12 poweroff
  40. 13 cd /home/ansible/
  41. 14 ls
  42. 15 cd ansible-tower-setup-3.6.3-1/
  43. 16 ./setup.sh
  44. 17 vim /etc/hosts
  45. 18 ip a
  46. 19 cd
  47. 20 exit
  48. 21 history
  49.  
  50. USER ON AWX
  51. 1 git clone https://github.com/sandervanvugt/tower
  52. 2 cd
  53. 3 git clone https://github.com/sandervanvugt/tower
  54. 4 cd tower/
  55. 5 ls
  56. 6 cd ..
  57. 7 git clone https://github.com/sandervanvugt/rhce8
  58. 8 cd rhce8/
  59. 9 ls
  60. 10 cd ..
  61. 11 git clone https://github.com/sandervanvugt/rhce8-live
  62. 12 cd rhce8-live/
  63. 13 ./countdown 12
  64. 14 su -
  65. 15 sudo git clone https://github.com/ansible/awx
  66. 16 sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
  67. 17 sudo yum remove podman
  68. 18 sudo yum install docker-ce docker-ce-cli containerd.io --nobest
  69. 19 sudo systemctl enable --now docker
  70. 20 sudo usermod -aG docker ansible
  71. 21 newgrp docker
  72. 22 sudo ln -s /usr/bin/python3 /usr/bin/python
  73. 23 sudo pip3 install docker-compose
  74. 24 vim awx/installer/inventory
  75. 25 suo vim awx/installer/inventory
  76. 26 sudo vim awx/installer/inventory
  77. 27 cd awx/installer/
  78. 28 ansible-playbook -i inventory install.yml
  79. 29 ip a
  80. 30 sudo vim /etc/hosts
  81. 31 cd
  82. 32 ssh-keygen
  83. 33 ssh-copy-id ansible1
  84. 34 ssh-copy-id ansible2
  85. 35 ssh ansible1
  86. 36 ssh ansible2
  87. 37 docker ps
  88. 38 docker logs -f awx_task
  89. 39 sudo reboot
  90. 40 sudo -i
  91. 41 history
  92.  
  93. ROOT ON AWX
  94. [root@awx2 ~]# history
  95. 1 cat /etc/redhat-release
  96. 2 systemctl disable --now firewalld
  97. 3 vim /etc/sysconfig/selinux
  98. 4 setenforce 0
  99. 5 yum install -y epel-release
  100. 6 yum install -y git bash-completion ansible yum-utils device-mapper-persistent-data lvm2
  101. 7 exit
  102. 8 pwd
  103. 9 cd /home/ansible/awx/
  104. 10 cd installer/
  105. 11 ls
  106. 12 vim inventory
  107. 13 ansible-playbook -i inventory install.yml
  108. 14 docker ps
  109. 15 docker logs -f awx_task
  110. 16 vim inventory
  111. 17 docker logs -f awx_task
  112. 18 exit
  113. 19 history
Add Comment
Please, Sign In to add comment