Без опису
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ---
  2. # Installs the ownCloud personal cloud software
  3. # as per http://www.debiantutorials.com/how-to-install-owncloud-on-wheezy/
  4. - name: Create database user for ownCloud
  5. postgresql_user: login_host=localhost login_user={{ db_admin_username }} login_password="{{ db_admin_password }}" name={{ owncloud_db_username }} password="{{ owncloud_db_password }}" state=present
  6. - name: Create database for ownCloud
  7. postgresql_db: login_host=localhost login_user={{ db_admin_username }} login_password="{{ db_admin_password }}" name={{ owncloud_db_database }} state=present owner={{ owncloud_db_username }}
  8. - name: Ensure repository key for ownCloud is in place
  9. apt_key: url=http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/Release.key state=present
  10. - name: Add ownCloud OpenSuSE repository
  11. apt_repository: repo='deb http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/ /'
  12. - name: Install ownCloud from OpenSuSE repository
  13. apt: pkg=owncloud update_cache=yes
  14. - name: Install PHP-APC
  15. apt: pkg=php-apc
  16. - name: Store ownCloud data securely
  17. command: mv /var/www/owncloud/data /decrypted/owncloud-data creates=/decrypted/owncloud-data
  18. - file: src=/decrypted/owncloud-data dest=/var/www/owncloud/data owner=www-data group=www-data state=link
  19. - name: Enable Apache rewrite module
  20. command: a2enmod rewrite creates=/etc/apache2/mods-enabled/rewrite.load
  21. notify: restart apache
  22. - name: Enable Apache headers module
  23. command: a2enmod headers creates=/etc/apache2/mods-enabled/headers.load
  24. notify: restart apache
  25. - name: Enable Apache expires module
  26. command: a2enmod expires creates=/etc/apache2/mods-enabled/expires.load
  27. notify: restart apache
  28. - name: Configure the Apache HTTP server for ownCloud
  29. template: src=etc_apache2_sites-available_owncloud.j2 dest=/etc/apache2/sites-available/owncloud group=www-data owner=www-data
  30. notify: restart apache
  31. - name: Enable the owncloud site
  32. command: a2ensite owncloud creates=/etc/apache2/sites-enabled/owncloud
  33. notify: restart apache
  34. - name: Install ownCloud cronjob
  35. cron: name="ownCloud" user="www-data" minute="*/5" job="php -f /var/www/owncloud/cron.php > /dev/null"