Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2012
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. #
  2. # Playbook for TestDev
  3. #
  4. ---
  5. - name: installing minimal requeriments
  6. hosts: testdev
  7. port: 31234
  8. user: testinstall
  9. sudo: True
  10. gather_facts: False
  11. vars:
  12. #document_root: {{ shared_folder }}
  13.  
  14. - name: Install all necesary packages
  15. action: apt name=$item state=installed update-cache=yes
  16. with_items:
  17. - percona-server-server-5.5
  18. - percona-server-client-5.5
  19. - percona-xtrabackup
  20. - nginx
  21. - php5-suhosin
  22. - php5-fpm
  23. - php5-imagick
  24. - php-pear
  25. - php5-cli
  26. - php5-common
  27. - php5-mysql
  28. - php5-gd
  29. - php5-curl
  30. - php5-xmlrpc
  31. - php5-memcached
  32. - php-apc
  33. - htop
  34. - memcached
  35. - python-mysqldb
  36. - phpmyadmin
  37. - inetutils-traceroute
  38. - redis-server
  39.  
  40. - name: Installing phpmyadmin nginx config
  41. action: copy src=/ansible/ansible-vagrant/templates/phpmyadmin.j2 dest=/etc/nginx/sites-available/phpmyadmin
  42.  
  43. - name: Installing php.ini custom file
  44. action: copy src=/ansible/ansible-vagrant/templates/php.ini.j2 dest=/etc/php5/fpm/php.ini
  45.  
  46. - name: Enabling new phpadmin config for nginx
  47. action: file state=link src=/etc/nginx/sites-available/phpmyadmin path=/etc/nginx/sites-enabled/phpmyadmin
  48.  
  49. - name: Restarting nginx
  50. action: service name=nginx state=restarted
  51.  
  52. - name: Restarting php-fpm
  53. action: service name=php5-fpm state=restarted
  54.  
  55. #- name: Installing Drush
  56. # hosts: testdev
  57. # port: 31234
  58. # user: testinstall
  59. # sudo: True
  60. # gather_facts: False
  61.  
  62. # tasks:
  63. # - name: Adding drush repository to pear libraries
  64. # action: shell pear channel-discover pear.drush.org
  65. # ignore_errors: True
  66.  
  67. # - name: Installing Drush
  68. # action: shell pear install drush/drush
  69. # ignore_errors: True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement