|
@@ -8,21 +8,29 @@
|
8
|
8
|
- name: Create database for ownCloud
|
9
|
9
|
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 }}
|
10
|
10
|
|
11
|
|
-- name: Ensure repository key for ownCloud is in place
|
|
11
|
+- name: Ensure repository key for ownCloud is in place for Debian 7
|
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
|
+ when: ansible_distribution_release == 'wheezy'
|
14
|
14
|
|
15
|
|
-- name: Add ownCloud OpenSuSE repository
|
|
15
|
+- name: Add ownCloud OpenSuSE repository for Debian 7
|
16
|
16
|
apt_repository: repo='deb http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/ /'
|
17
|
|
- when: ansible_distribution == 'Debian'
|
|
17
|
+ when: ansible_distribution_release == 'wheezy'
|
18
|
18
|
|
19
|
|
-- name: Ensure repository key for ownCloud is in place
|
|
19
|
+- name: Ensure repository key for ownCloud is in place for Ubuntu 14.04
|
20
|
20
|
apt_key: url=http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_14.04/Release.key state=present
|
21
|
|
- when: ansible_distribution == 'Ubuntu'
|
|
21
|
+ when: ansible_distribution_release == 'trusty'
|
22
|
22
|
|
23
|
|
-- name: Add ownCloud OpenSuSE repository
|
|
23
|
+- name: Add ownCloud OpenSuSE repository for Ubuntu 14.04
|
24
|
24
|
apt_repository: repo='deb http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_14.04/ /'
|
25
|
|
- when: ansible_distribution == 'Ubuntu'
|
|
25
|
+ when: ansible_distribution_release == 'trusty'
|
|
26
|
+
|
|
27
|
+- name: Ensure repository key for ownCloud is in place for Ubuntu 12.04
|
|
28
|
+ apt_key: url=http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/Release.key state=present
|
|
29
|
+ when: ansible_distribution_release == 'precise'
|
|
30
|
+
|
|
31
|
+- name: Add ownCloud OpenSuSE repository for Ubuntu 12.04
|
|
32
|
+ apt_repository: repo='deb http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/ /'
|
|
33
|
+ when: ansible_distribution_release == 'precise'
|
26
|
34
|
|
27
|
35
|
- name: Install ownCloud (possibly from OpenSuSE repository)
|
28
|
36
|
apt: pkg=owncloud update_cache=yes
|