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.

owncloud.yml 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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-mail/owncloud-data creates=/decrypted-mail/owncloud-data
  18. - file: src=/decrypted-mail/owncloud-data dest=/var/www/owncloud/data owner=www-data group=www-data state=link
  19. - name: Enable Apache module dependencies for ownCloud
  20. command: a2enmod $item
  21. with_items:
  22. - rewrite
  23. - headers
  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. - command: a2ensite owncloud
  28. notify: restart apache
  29. - name: Install ownCloud cronjob
  30. cron: name="ownCloud" user="www-data" minute="*/5" job="php -f /var/www/owncloud/cron.php > /dev/null"