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

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. mysql_user: user={{ owncloud_mysql_username }} password={{ owncloud_mysql_password }} state=present priv="owncloud.*:ALL"
  6. - name: Create database for ownCloud
  7. mysql_db: name={{ owncloud_mysql_database }} state=present
  8. - name: Install ownCloud dependencies
  9. apt: pkg=python-software-properties
  10. - name: Ensure repository key for ownCloud is in place
  11. apt_key: url=http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/Release.key state=present
  12. - name: Add ownCloud OpenSuSE repository
  13. apt_repository: repo='deb http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/ /'
  14. - name: Install ownCloud from OpenSuSE repository
  15. apt: pkg=owncloud update_cache=yes
  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: Configure the Apache HTTP server for ownCloud
  26. template: src=etc_apache2_sites-available_owncloud.j2 dest=/etc/apache2/sites-available/owncloud group=www-data owner=www-data
  27. - name: Enable the owncloud site
  28. command: a2ensite owncloud creates=/etc/apache2/sites-enabled/owncloud
  29. notify: restart apache
  30. - name: Install ownCloud cronjob
  31. cron: name="ownCloud" user="www-data" minute="*/5" job="php -f /var/www/owncloud/cron.php > /dev/null"