forked from hifis-net/ansible-role-zammad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.yml
58 lines (49 loc) · 1.42 KB
/
install.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
- when: ansible_distribution | lower == 'centos'
block:
- name: Install | Install EPEL repo
yum:
name: epel-release
state: present
- name: Install | Add Zammad yum repository
yum_repository:
name: zammad
state: present
description: Repository for zammad/zammad (stable) packages.
baseurl: https://dl.packager.io/srv/rpm/zammad/zammad/stable/el/7/$basearch
enabled: yes
gpgcheck: no
repo_gpgcheck: yes
gpgkey: https://dl.packager.io/srv/zammad/zammad/key
- when: ansible_distribution | lower == 'ubuntu'
block:
- name: Install | Add Zammad apt key
apt_key:
url: https://dl.packager.io/srv/zammad/zammad/key
state: present
- name: Install | Add Zammad DEB repository
apt_repository:
repo: deb https://dl.packager.io/srv/deb/zammad/zammad/stable/ubuntu {{ ansible_distribution_version }} main
state: present
filename: zammad
update_cache: yes
- name: Install | Install Zammad package
package:
name: zammad={{ zammad_version }}*
state: present
force: yes
notify:
- Set Elasticsearch server address
- Build search index
- name: Install | Start and enable services
service:
name: "{{ item }}"
state: started
enabled: yes
loop:
- zammad
- zammad-web
- zammad-worker
- zammad-websocket
notify: Build search index
...