EPESI BIM • Business Information Manager • Cloud CRM/ERP http://epe.si/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

playbook.yml 885B

123456789101112131415161718192021222324252627282930313233
  1. - hosts: all
  2. become: true
  3. tasks:
  4. - apt_repository:
  5. repo: 'ppa:ondrej/php'
  6. - apt:
  7. update_cache: yes
  8. - apt: name={{item}} state=present
  9. with_items:
  10. - apache2
  11. - php5.6
  12. - php5.6-mysql
  13. - php5.6-cli
  14. - php5.6-mcrypt
  15. - php5.6-mbstring
  16. - php5.6-mysql
  17. - php5.6-gd
  18. - php5.6-intl
  19. - php5.6-curl
  20. - php5.6-zip
  21. - mysql-server
  22. - python-mysqldb
  23. - lineinfile:
  24. path: '/etc/apache2/sites-available/000-default.conf'
  25. regexp: 'DocumentRoot'
  26. line: ' DocumentRoot /var/www/epesi'
  27. - service: name=apache2 state=restarted
  28. - mysql_db: name=epesi state=present
  29. - mysql_user:
  30. name: admin
  31. password: "{{ lookup('password', './mysqlpassword length=8') }}"
  32. priv: 'epesi.*:ALL,GRANT'
  33. state: present