-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathown-cloud-client.yml
40 lines (37 loc) · 1.78 KB
/
own-cloud-client.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
- name: Own-Cloud installation
hosts: admin_staff
gather_facts: yes
become: yes
tasks:
- name: "Update to precise to trusty mirror Incase of Ubuntu_14.04"
replace: dest=/etc/apt/sources.list regexp='precise' replace='trusty' backup=yes
when: ansible_lsb.codename == "precise"
- name: "Download owcloud Repo"
apt_repository: repo='deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_14.04/ /' state=present
when: ansible_lsb.codename == "precise"
- name: "Download ownlcoud repo key"
apt_key: url='http://download.opensuse.org/repositories/isv:ownCloud:desktop/Ubuntu_14.04/Release.key' state=present
when: ansible_lsb.codename == "precise"
- name: "Update apt"
apt: update_cache=yes
when: ansible_lsb.codename == "precise"
- name: "Install Owncloud-client"
apt: name=owncloud-client state=present force=yes
when: ansible_lsb.codename == "precise"
- name: "Download owcloud Repo"
apt_repository:
repo: 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_{{ ansible_distribution_version }}/ /'
state: present
when: ansible_lsb.codename in ["xenial","trusty"]
- name: "Download ownlcoud repo key"
apt_key:
url: 'http://download.opensuse.org/repositories/isv:ownCloud:desktop/Ubuntu_{{ ansible_distribution_version }}/Release.key'
state: present
when: ansible_lsb.codename in ["xenial","trusty"]
- name: "Update apt"
apt: update_cache=yes
when: ansible_lsb.codename in ["xenial","trusty"]
- name: "Install Owncloud-client"
apt: name=owncloud-client state=present force=yes
when: ansible_lsb.codename in ["xenial","trusty"]