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
 # Installs the ownCloud personal cloud software
2
 # Installs the ownCloud personal cloud software
3
 # as per http://www.debiantutorials.com/how-to-install-owncloud-on-wheezy/
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
   apt: pkg={{ item }} state=present
6
   apt: pkg={{ item }} state=present
19
   with_items:
7
   with_items:
8
+    - postgres
20
     - libapache2-mod-php5
9
     - libapache2-mod-php5
21
     - php-apc
10
     - php-apc
22
     - python-psycopg2
11
     - python-psycopg2
38
   tags:
27
   tags:
39
     - dependencies
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
   tags:
33
   tags:
45
     - dependencies
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
   apt_key: url=http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_14.04/Release.key state=present
37
   apt_key: url=http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_14.04/Release.key state=present
49
   when: ansible_distribution_release == 'trusty'
38
   when: ansible_distribution_release == 'trusty'
50
   tags:
39
   tags:
51
     - dependencies
40
     - dependencies
52
 
41
 
53
-- name: Add ownCloud OpenSuSE repository for Ubuntu 14.04
42
+- name: Add ownCloud OpenSuSE repository for Ubuntu Trusty
54
   apt_repository: repo='deb http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_14.04/ /'
43
   apt_repository: repo='deb http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_14.04/ /'
55
   when: ansible_distribution_release == 'trusty'
44
   when: ansible_distribution_release == 'trusty'
56
   tags:
45
   tags:
57
     - dependencies
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
   apt: pkg=owncloud update_cache=yes
49
   apt: pkg=owncloud update_cache=yes
73
   tags:
50
   tags:
74
     - dependencies
51
     - dependencies
75
 
52
 
76
-- name: Owncloud www directory
53
+- name: Ensure ownCloud directory is in place
77
   file: state=directory path=/var/www/owncloud
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
   command: mv /var/www/owncloud/data /decrypted/owncloud-data creates=/decrypted/owncloud-data
57
   command: mv /var/www/owncloud/data /decrypted/owncloud-data creates=/decrypted/owncloud-data
81
 - file: src=/decrypted/owncloud-data dest=/var/www/owncloud/data owner=www-data group=www-data state=link
58
 - file: src=/decrypted/owncloud-data dest=/var/www/owncloud/data owner=www-data group=www-data state=link
82
 
59
 

Loading…
Cancel
Save