|
@@ -10,15 +10,23 @@
|
10
|
10
|
|
11
|
11
|
- name: Ensure repository key for ownCloud is in place
|
12
|
12
|
apt_key: url=http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/Release.key state=present
|
|
13
|
+ when: ansible_distribution == 'Debian'
|
13
|
14
|
|
14
|
15
|
- name: Add ownCloud OpenSuSE repository
|
15
|
16
|
apt_repository: repo='deb http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/ /'
|
|
17
|
+ when: ansible_distribution == 'Debian'
|
16
|
18
|
|
17
|
|
-- name: Install ownCloud from OpenSuSE repository
|
|
19
|
+- name: Install ownCloud (possibly from OpenSuSE repository)
|
18
|
20
|
apt: pkg=owncloud update_cache=yes
|
19
|
21
|
|
20
|
|
-- name: Install PHP-APC
|
21
|
|
- apt: pkg=php-apc
|
|
22
|
+- name: Install PHP dependencies
|
|
23
|
+ apt: pkg={{ item }} state=present
|
|
24
|
+ with_items:
|
|
25
|
+ - php-apc
|
|
26
|
+ - libapache2-mod-php5
|
|
27
|
+
|
|
28
|
+- name: Owncloud www directory
|
|
29
|
+ file: state=directory path=/var/www/owncloud
|
22
|
30
|
|
23
|
31
|
- name: Store ownCloud data securely
|
24
|
32
|
command: mv /var/www/owncloud/data /decrypted/owncloud-data creates=/decrypted/owncloud-data
|