|
@@ -1,13 +1,21 @@
|
1
|
1
|
---
|
2
|
2
|
# Installs the ownCloud personal cloud software
|
3
|
3
|
# as per http://www.debiantutorials.com/how-to-install-owncloud-on-wheezy/
|
4
|
|
-- name: Install dependencies
|
|
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
|
+
|
|
9
|
+- name: Install Postgres 9.3 on Ubuntu Trusty
|
|
10
|
+ apt: pkg=postgresql-9.3 state=present
|
|
11
|
+ when: ansible_distribution_release == 'trusty'
|
|
12
|
+
|
|
13
|
+- name: Install ownCloud dependencies
|
5
|
14
|
apt: pkg={{ item }} state=present
|
6
|
15
|
with_items:
|
7
|
16
|
- libapache2-mod-php5
|
8
|
17
|
- php-apc
|
9
|
18
|
- python-psycopg2
|
10
|
|
- - postgresql-9.1
|
11
|
19
|
|
12
|
20
|
- name: Set postgres password
|
13
|
21
|
command: sudo -u {{ db_admin_username }} psql -d {{ db_admin_username }} -c "ALTER USER postgres with password '{{ db_admin_password }}';"
|