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

Commit ddb12c5

Browse files
Specify the feature flag name in the task description
Co-authored-by: Christian Hueser <55481699+christianhueserhzdr@users.noreply.github.com>
1 parent 10dd75a commit ddb12c5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tasks/feature-flag.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@
55

66
---
77

8-
- name: "Check if a feature flag is already enabled"
8+
- name: "Check if feature flag is already enabled for {{ gitlab_feature_flag.name }}"
99
ansible.builtin.command:
1010
cmd: "gitlab-rails runner 'is_feature_enabled = Feature.enabled?(:{{ gitlab_feature_flag.name }}); puts is_feature_enabled'"
1111
register: "is_feature_enabled"
1212
changed_when: false
1313

14-
- name: "Enable or disable a feature flag"
14+
- name: "Enable or disable feature flag {{ gitlab_feature_flag.name }}"
1515
ansible.builtin.command:
1616
cmd: "gitlab-rails runner 'Feature.{{ 'enable' if gitlab_feature_flag.enabled else 'disable' }}(:{{ gitlab_feature_flag.name }})'"
1717
when: "(is_feature_enabled.stdout == 'true' and not gitlab_feature_flag.enabled) or (is_feature_enabled.stdout == 'false' and gitlab_feature_flag.enabled)"
1818

19-
2019
...

0 commit comments

Comments
 (0)