No Description
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.

wallabag.yml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. - name: Clone wallabag
  2. git: repo=https://github.com/wallabag/wallabag.git
  3. dest=/var/www/wallabag
  4. version={{ wallabag_version }}
  5. - name: Install wallabag dependencies
  6. apt: pkg={{ item }} state=present
  7. with_items:
  8. - php5
  9. - php5-mcrypt
  10. - php5-tidy
  11. - php5-curl
  12. - php5-pgsql
  13. - name: Create database user for wallabag
  14. postgresql_user: login_host=localhost
  15. login_user={{ db_admin_username }}
  16. login_password="{{ db_admin_password }}"
  17. name={{ wallabag_db_username }}
  18. password="{{ wallabag_db_password }}"
  19. state=present
  20. - name: Create database for wallabag
  21. postgresql_db: login_host=localhost
  22. login_user={{ db_admin_username }}
  23. login_password="{{ db_admin_password }}"
  24. name={{ wallabag_db_database }}
  25. state=present
  26. owner={{ wallabag_db_username }}
  27. - name: Build Composer
  28. shell: curl -sS https://getcomposer.org/installer | php
  29. chdir=/root
  30. creates=/root/composer.phar
  31. - name: Initialize composer
  32. command: php /root/composer.phar install
  33. chdir=/var/www/wallabag
  34. creates=/var/www/wallabag/vendor/autoload.php
  35. - name: Set wallabag permissions
  36. file: owner=www-data
  37. group=www-data
  38. path=/var/www/wallabag
  39. recurse=yes
  40. state=directory
  41. - name: Configure the Apache HTTP server for wallabag
  42. template: src=etc_apache2_sites-available_wallabag.j2
  43. dest=/etc/apache2/sites-available/wallabag
  44. group=www-data
  45. owner=www-data
  46. notify: restart apache
  47. - name: Enable the wallabag site
  48. command: a2ensite wallabag
  49. creates=/etc/apache2/sites-enabled/wallabag
  50. notify: restart apache