Loading handlers/main.yml +2 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ - name: Reconfigure gitlab ansible.builtin.shell: | set -o pipefail gitlab-ctl deploy-page up gitlab-ctl backup-etc gitlab-ctl start Loading @@ -9,6 +10,7 @@ ( cat /etc/gitlab/gitlab.rb | grep "letsencrypt" | sed 's/\ //g' | grep "\['enable'\]=true" > /dev/null 2> /dev/null ) && gitlab-ctl renew-le-certs || true gitlab-ctl deploy-page down notify: Enable gitlab service changed_when: true - name: Enable gitlab service ansible.builtin.systemd: Loading tasks/ubuntu/main.yml +21 −18 Original line number Diff line number Diff line Loading @@ -67,6 +67,9 @@ ansible.builtin.copy: dest: "/opt/gitlab.rb" src: "{{ gitlab_config.backup_file }}" owner: root group: root mode: '0640' remote_src: true - name: Remove backup file from gitlab config dir ansible.builtin.file: Loading Loading
handlers/main.yml +2 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ - name: Reconfigure gitlab ansible.builtin.shell: | set -o pipefail gitlab-ctl deploy-page up gitlab-ctl backup-etc gitlab-ctl start Loading @@ -9,6 +10,7 @@ ( cat /etc/gitlab/gitlab.rb | grep "letsencrypt" | sed 's/\ //g' | grep "\['enable'\]=true" > /dev/null 2> /dev/null ) && gitlab-ctl renew-le-certs || true gitlab-ctl deploy-page down notify: Enable gitlab service changed_when: true - name: Enable gitlab service ansible.builtin.systemd: Loading
tasks/ubuntu/main.yml +21 −18 Original line number Diff line number Diff line Loading @@ -67,6 +67,9 @@ ansible.builtin.copy: dest: "/opt/gitlab.rb" src: "{{ gitlab_config.backup_file }}" owner: root group: root mode: '0640' remote_src: true - name: Remove backup file from gitlab config dir ansible.builtin.file: Loading