Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Playbook for TestDev
- #
- ---
- - name: installing minimal requeriments
- hosts: testdev
- port: 31234
- user: testinstall
- sudo: True
- gather_facts: False
- vars:
- #document_root: {{ shared_folder }}
- - name: Install all necesary packages
- action: apt name=$item state=installed update-cache=yes
- with_items:
- - percona-server-server-5.5
- - percona-server-client-5.5
- - percona-xtrabackup
- - nginx
- - php5-suhosin
- - php5-fpm
- - php5-imagick
- - php-pear
- - php5-cli
- - php5-common
- - php5-mysql
- - php5-gd
- - php5-curl
- - php5-xmlrpc
- - php5-memcached
- - php-apc
- - htop
- - memcached
- - python-mysqldb
- - phpmyadmin
- - inetutils-traceroute
- - redis-server
- - name: Installing phpmyadmin nginx config
- action: copy src=/ansible/ansible-vagrant/templates/phpmyadmin.j2 dest=/etc/nginx/sites-available/phpmyadmin
- - name: Installing php.ini custom file
- action: copy src=/ansible/ansible-vagrant/templates/php.ini.j2 dest=/etc/php5/fpm/php.ini
- - name: Enabling new phpadmin config for nginx
- action: file state=link src=/etc/nginx/sites-available/phpmyadmin path=/etc/nginx/sites-enabled/phpmyadmin
- - name: Restarting nginx
- action: service name=nginx state=restarted
- - name: Restarting php-fpm
- action: service name=php5-fpm state=restarted
- #- name: Installing Drush
- # hosts: testdev
- # port: 31234
- # user: testinstall
- # sudo: True
- # gather_facts: False
- # tasks:
- # - name: Adding drush repository to pear libraries
- # action: shell pear channel-discover pear.drush.org
- # ignore_errors: True
- # - name: Installing Drush
- # action: shell pear install drush/drush
- # ignore_errors: True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement