Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 421fbb9

Browse files
Merge pull request #85 from tobiashuste/flush-handlers-only-when-required
Flush handlers only if required
2 parents 8687b26 + c57cc55 commit 421fbb9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tasks/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,14 @@
3535
ansible.builtin.import_tasks: configure.yml
3636
become: yes
3737

38+
- name: "Check if GitLab is already configured"
39+
ansible.builtin.stat:
40+
path: "/opt/gitlab/etc/gitlab-rails-rc"
41+
register: "gitlab_rails_rc"
42+
3843
- name: "Force all notified handlers to run at this point. Required for feature flags."
3944
ansible.builtin.meta: "flush_handlers"
45+
when: "not gitlab_rails_rc.stat.exists and gitlab_feature_flags | length > 0"
4046

4147
- name: "Set feature flags"
4248
ansible.builtin.include_tasks: "feature-flag.yml"

0 commit comments

Comments
 (0)