Browse Source

Clean up ownCloud for Jessie and Trusty

Alex Payne 9 years ago
parent
commit
ebe3562921
1 changed files with 10 additions and 33 deletions
  1. 10
    33
      roles/owncloud/tasks/owncloud.yml

+ 10
- 33
roles/owncloud/tasks/owncloud.yml View File

@@ -2,21 +2,10 @@
2 2
 # Installs the ownCloud personal cloud software
3 3
 # as per http://www.debiantutorials.com/how-to-install-owncloud-on-wheezy/
4 4
 
5
-- name: Install Postgres 9.1 on distributions other than Ubuntu Trusty
6
-  apt: pkg=postgresql-9.1 state=present
7
-  when: ansible_distribution_release != 'trusty'
8
-  tags:
9
-    - dependencies
10
-
11
-- name: Install Postgres 9.3 on Ubuntu Trusty
12
-  apt: pkg=postgresql-9.3 state=present
13
-  when: ansible_distribution_release == 'trusty'
14
-  tags:
15
-    - dependencies
16
-
17
-- name: Install ownCloud dependencies
5
+- name: Install ownCloud  dependencies
18 6
   apt: pkg={{ item }} state=present
19 7
   with_items:
8
+    - postgres
20 9
     - libapache2-mod-php5
21 10
     - php-apc
22 11
     - python-psycopg2
@@ -38,45 +27,33 @@
38 27
   tags:
39 28
     - dependencies
40 29
 
41
-- name: Add ownCloud OpenSuSE repository for Debian 7
42
-  apt_repository: repo='deb http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/ /'
43
-  when: ansible_distribution_release == 'wheezy'
30
+- name: Add ownCloud OpenSuSE repository for Debian Jessie
31
+  apt_repository: repo='deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_8.0/ /'
32
+  when: ansible_distribution_release == 'jessie'
44 33
   tags:
45 34
     - dependencies
46 35
 
47
-- name: Ensure repository key for ownCloud is in place for Ubuntu 14.04
36
+- name: Ensure repository key for ownCloud is in place for Ubuntu Trusty
48 37
   apt_key: url=http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_14.04/Release.key state=present
49 38
   when: ansible_distribution_release == 'trusty'
50 39
   tags:
51 40
     - dependencies
52 41
 
53
-- name: Add ownCloud OpenSuSE repository for Ubuntu 14.04
42
+- name: Add ownCloud OpenSuSE repository for Ubuntu Trusty
54 43
   apt_repository: repo='deb http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_14.04/ /'
55 44
   when: ansible_distribution_release == 'trusty'
56 45
   tags:
57 46
     - dependencies
58 47
 
59
-- name: Ensure repository key for ownCloud is in place for Ubuntu 12.04
60
-  apt_key: url=http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/Release.key state=present
61
-  when: ansible_distribution_release == 'precise'
62
-  tags:
63
-    - dependencies
64
-
65
-- name: Add ownCloud OpenSuSE repository for Ubuntu 12.04
66
-  apt_repository: repo='deb http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/ /'
67
-  when: ansible_distribution_release == 'precise'
68
-  tags:
69
-    - dependencies
70
-
71
-- name: Install ownCloud (possibly from OpenSuSE repository)
48
+- name: Install ownCloud
72 49
   apt: pkg=owncloud update_cache=yes
73 50
   tags:
74 51
     - dependencies
75 52
 
76
-- name: Owncloud www directory
53
+- name: Ensure ownCloud directory is in place
77 54
   file: state=directory path=/var/www/owncloud
78 55
 
79
-- name: Store ownCloud data securely
56
+- name: Move ownCloud data to encrypted filesystem
80 57
   command: mv /var/www/owncloud/data /decrypted/owncloud-data creates=/decrypted/owncloud-data
81 58
 - file: src=/decrypted/owncloud-data dest=/var/www/owncloud/data owner=www-data group=www-data state=link
82 59
 

Loading…
Cancel
Save