File tree 4 files changed +23
-12
lines changed
4 files changed +23
-12
lines changed Original file line number Diff line number Diff line change 29
29
name :
30
30
- " sudo" # for `become` privilege escalation
31
31
- " iproute2" # for gathering network facts
32
+ - " python3-debian"
32
33
state : " present"
33
34
update_cache : true
34
35
Original file line number Diff line number Diff line change 14
14
- name : " Prepare Debian GitLab installation"
15
15
when : " ansible_facts.os_family == 'Debian'"
16
16
block :
17
- - name : " Install APT GPG key"
17
+ - name : " Remove APT GPG key"
18
18
ansible.builtin.apt_key :
19
19
url : " {{ gitlab_gpg_key_url }}"
20
20
id : " {{ gitlab_gpg_key_id }}"
21
- state : " present "
21
+ state : " absent "
22
22
when : " not gitlab_is_initial_dryrun"
23
23
24
24
- name : " Add GitLab APT repository"
25
- ansible.builtin.apt_repository :
26
- repo : " deb {{ gitlab_repo_url }} {{ ansible_facts.distribution_release }} main"
25
+ ansible.builtin.deb822_repository :
26
+ name : " gitlab_{{ gitlab_edition }}"
27
+ types : " deb"
28
+ uris : " {{ gitlab_repo_url }}"
29
+ suites : " {{ ansible_facts.distribution_release }}"
30
+ components : " main"
31
+ signed_by : " {{ gitlab_gpg_key_url }}"
27
32
state : " present"
28
- filename : " gitlab_{{ gitlab_edition }}"
29
33
mode : " 0644"
34
+ enabled : true
30
35
31
- - name : " Add GitLab source APT repository"
36
+ - name : " Remove GitLab source APT repository"
32
37
ansible.builtin.apt_repository :
33
38
repo : " deb-src {{ gitlab_repo_url }} {{ ansible_facts.distribution_release }} main"
34
- state : " present "
39
+ state : " absent "
35
40
filename : " gitlab_{{ gitlab_edition }}"
36
41
mode : " 0644"
37
42
Original file line number Diff line number Diff line change 6
6
---
7
7
zammad_version : " 6.4.1"
8
8
zammad_release_channel : " stable"
9
+ zammad_repo_url : " https://dl.packager.io/srv/deb/zammad/zammad/{{ zammad_release_channel }}/{{ ansible_facts.distribution | lower }}"
9
10
zammad_domain_name : " {{ ansible_fqdn }}"
10
11
11
12
zammad_nginx_config_path : " /etc/nginx/sites-available/zammad.conf"
Original file line number Diff line number Diff line change 45
45
- name : " Install | Add Zammad apt key"
46
46
ansible.builtin.apt_key :
47
47
url : " https://dl.packager.io/srv/zammad/zammad/key"
48
- state : " present "
48
+ state : " absent "
49
49
50
50
- name : " Install | Add Zammad DEB repository"
51
- ansible.builtin.apt_repository :
52
- repo : " deb https://dl.packager.io/srv/deb/zammad/zammad/{{ zammad_release_channel }}/ubuntu {{ ansible_distribution_version }} main"
51
+ ansible.builtin.deb822_repository :
52
+ name : " zammad"
53
+ types : " deb"
54
+ uris : " {{ zammad_repo_url }}"
55
+ suites : " {{ ansible_distribution_version }}"
56
+ components : " main"
57
+ signed_by : " https://dl.packager.io/srv/zammad/zammad/key"
53
58
state : " present"
54
- filename : " zammad"
55
- update_cache : true
56
59
mode : " 0644"
60
+ enabled : true
57
61
58
62
- name : " Gather the package facts to check wether Zammad has already been installed"
59
63
ansible.builtin.package_facts :
You can’t perform that action at this time.
0 commit comments