Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

feat: Added GitLab Update feature #222

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
- name: Install GitLab dependencies.
package:
name: "{{ gitlab_dependencies }}"
state: present
state: latest

- name: Install GitLab dependencies (Debian).
apt:
name: gnupg2
state: present
state: latest
when: ansible_os_family == 'Debian'

- name: Download GitLab repository installation script.
Expand All @@ -39,13 +39,21 @@
gitlab_package_name: "{{ gitlab_edition }}{{ gitlab_package_version_separator }}{{ gitlab_version }}"
when: gitlab_version | default(false)

- name: Install GitLab
- name: Install GitLab specific version
package:
name: "{{ gitlab_package_name | default(gitlab_edition) }}"
name: "{{ gitlab_package_name }}"
state: present
async: 300
async: 3000
poll: 5
when: not gitlab_file.stat.exists
when: (gitlab_version is defined) and (gitlab_version|length > 0)

- name: Install GitLab latest version
package:
name: "{{ gitlab_edition }}"
state: latest
async: 3000
poll: 5
when: (gitlab_version is not defined) or (gitlab_version|length == 0)

# Start and configure GitLab. Sometimes the first run fails, but after that,
# restarts fix problems, so ignore failures on this run.
Expand Down
Loading