Advertisement
Guest User

Untitled

a guest
Jul 11th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. ---
  2. -
  3. name: Install Git, OpenJDK, MySql, Docker, Bamboo
  4. hosts: myservers
  5. remote_user: root
  6. vars:
  7. bamboo: atlassian-bamboo
  8. bamboover: 5.12.2.1
  9. dlpath: software/bamboo/downloads/binary
  10. tmp: /var/tmp
  11. installto: opt
  12. datahome: /srv/bamboo-data
  13. svcuser: someuser
  14. dbuser: someotheruser
  15. dbpass: somepassword
  16. tasks:
  17. - name: install epel-release
  18. yum: pkg=epel-release state=latest
  19. - name: install the open-vm-tools, htop, mlocate, ansible, autoconf, wget, java-1.8.0-openjdk-headless.x86_64, Development tools
  20. yum: state=present name={{item}}
  21. with_items:
  22. - open-vm-tools
  23. - htop
  24. - mlocate
  25. - ansible
  26. - autoconf
  27. - wget
  28. - java-1.8.0-openjdk-headless.x86_64
  29. - "Development tools"
  30. ## The task gets here and it doesn't continue for some reason.
  31. - name: Reboot the server after install
  32. command: reboot
  33. - name: wait for server to come back
  34. local_action:
  35. module: wait_for
  36. host={{inventory_hostname}}
  37. port=22
  38. state=started
  39. delay=1
  40. timeout=300
  41. sudo: false
  42. - name: updatedb
  43. command: updatedb >> playbook.log.txt
  44. - name: install mysql, mysql-community-server
  45. yum: name={{item}} state=present
  46. with_items:
  47. - http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
  48. - mysql-community-server
  49. - name: Start of mysqld
  50. command: service mysqld start >> playbook.log.txt
  51. [...] #Continues...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement