Skip to content

Commit 5892a95

Browse files
committed
debug
Signed-off-by: Norman Ziegner <[email protected]>
1 parent e5fbe34 commit 5892a95

File tree

2 files changed

+69
-3
lines changed

2 files changed

+69
-3
lines changed

roles/gitlab/tasks/install.yml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,44 @@
2626
name: "{{ gitlab_edition }}"
2727
types: "deb"
2828
uris: "{{ gitlab_repo_url }}"
29-
suites: "{{ ansible_facts.distribution_release }}"
29+
suites: "{{ ansible_facts.distribution_release | lower }}"
3030
components: "main"
3131
signed_by: "{{ gitlab_gpg_key_url }}"
32+
architectures: "amd64"
3233
state: "present"
3334
mode: "0644"
3435
enabled: true
3536

37+
- name: "Find files"
38+
ansible.builtin.find:
39+
paths: "/etc/apt/sources.list.d"
40+
recurse: true
41+
register: "sources"
42+
tags:
43+
- "skip_ansible_lint"
44+
45+
- name: "Debugging"
46+
ansible.builtin.debug:
47+
var: "sources"
48+
ignore_errors: true
49+
tags:
50+
- "skip_ansible_lint"
51+
52+
- name: "Read file"
53+
ansible.builtin.command:
54+
cmd: "cat /etc/apt/sources.list.d/gitlab-ce.sources"
55+
register: "content"
56+
ignore_errors: true
57+
tags:
58+
- "skip_ansible_lint"
59+
60+
- name: "Debugging"
61+
ansible.builtin.debug:
62+
var: "content"
63+
ignore_errors: true
64+
tags:
65+
- "skip_ansible_lint"
66+
3667
- name: "Remove GitLab source APT repository"
3768
ansible.builtin.apt_repository:
3869
repo: "deb-src {{ gitlab_repo_url }} {{ ansible_facts.distribution_release }} main"
@@ -43,7 +74,6 @@
4374
- name: "Update APT package cache"
4475
ansible.builtin.apt:
4576
update_cache: true
46-
cache_valid_time: 3600
4777
register: "gitlab_apt_cache"
4878
check_mode: false
4979
changed_when:

roles/zammad/tasks/install.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,49 @@
4040
name: "zammad"
4141
types: "deb"
4242
uris: "{{ zammad_repo_url }}"
43-
suites: "{{ ansible_distribution_version }}"
43+
suites: "{{ ansible_facts.distribution_version }}"
4444
components: "main"
4545
signed_by: "https://dl.packager.io/srv/zammad/zammad/key"
46+
architectures: "amd64"
4647
state: "present"
4748
mode: "0644"
4849
enabled: true
4950

51+
- name: "Find files"
52+
ansible.builtin.find:
53+
paths: "/etc/apt/sources.list.d"
54+
recurse: true
55+
register: "sources"
56+
tags:
57+
- "skip_ansible_lint"
58+
59+
- name: "Debugging"
60+
ansible.builtin.debug:
61+
var: "sources"
62+
ignore_errors: true
63+
tags:
64+
- "skip_ansible_lint"
65+
66+
- name: "Read file"
67+
ansible.builtin.command:
68+
cmd: "cat /etc/apt/sources.list.d/zammad.sources"
69+
register: "content"
70+
ignore_errors: true
71+
tags:
72+
- "skip_ansible_lint"
73+
74+
- name: "Debugging"
75+
ansible.builtin.debug:
76+
var: "content"
77+
ignore_errors: true
78+
tags:
79+
- "skip_ansible_lint"
80+
81+
- name: "Update apt cache"
82+
ansible.builtin.apt:
83+
update_cache: true
84+
changed_when: false
85+
5086
- name: "Gather the package facts to check wether Zammad has already been installed"
5187
ansible.builtin.package_facts:
5288
manager: "auto"

0 commit comments

Comments
 (0)