Skip to content

Commit

Permalink
Merge pull request #303 from Wihrt/fix-debian-unhold
Browse files Browse the repository at this point in the history
fix(install-debian.yml): add task to gather package facts before unholding GitLab Runner version
  • Loading branch information
guenhter authored Jan 9, 2024
2 parents f327f3f + 20df165 commit 2c339d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/install-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,16 @@
gitlab_runner_package_state: latest
when: gitlab_runner_package_version is not defined

- name: Gather the package facts
package_facts:
manager: apt

- name: (Debian) Unhold GitLab Runner version
changed_when: false
dpkg_selections:
name: "{{ gitlab_runner_package_name }}"
selection: install
when: "'gitlab-runner' in ansible_facts.packages"

- name: (Debian) Install GitLab Runner
apt:
Expand Down

0 comments on commit 2c339d7

Please sign in to comment.