diff --git a/tasks/install-debian.yml b/tasks/install-debian.yml index a041111..d561850 100644 --- a/tasks/install-debian.yml +++ b/tasks/install-debian.yml @@ -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: