Skip to content
Snippets Groups Projects
Unverified Commit 590b3a52 authored by vincent_stchu's avatar vincent_stchu
Browse files

Add option to hold package version

parent 9a938023
No related merge requests found
......@@ -35,6 +35,11 @@
gitlab_package_name: "{{ gitlab_edition }}{{ gitlab_package_version_separator }}{{ gitlab_version }}"
when: gitlab_version | default(false)
- name: Unhold GitLab package version
ansible.builtin.dpkg_selections:
name: "{{ gitlab_edition }}"
selection: install
- name: Uninstall before reinstall
ansible.builtin.package:
name: "{{ gitlab_edition }}"
......@@ -48,6 +53,11 @@
async: "{{ ansible_check_mode | ternary(0, 300) }}"
poll: 5
- name: Hold GitLab package version to avoid accidential upgrade
ansible.builtin.dpkg_selections:
name: "{{ gitlab_edition }}"
selection: hold
- name: Copy postgres GitLab configuration file.
ansible.builtin.template:
src: "postgres_role_gitlab.rb.j2"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment