Commit f24358b2 authored by Cédric OLIVIER's avatar Cédric OLIVIER
Browse files

feat: Change boolean variable behaviour



BREAKING CHANGE: boolean variable now triggered on explicit 'true' value

Signed-off-by: default avatarCédric OLIVIER <cedric3.olivier@orange.com>
parent 4c0b85a8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -227,7 +227,7 @@ Here are its parameters:
| Name                    | Description                               | Default value                 |
| ----------------------- | ----------------------------------------- | ----------------------------- |
| `ANSIBLE_LINT_IMAGE`    | The Docker image used to run Ansible Lint | `haxorof/ansible-lint:latest` |
| `ANSIBLE_LINT_DISABLED` | Set to disable the `kube-score` analysis  | _none_ (enabled) |
| `ANSIBLE_LINT_DISABLED` | Set to `true` to disable the `ansible lint` analysis  | _none_ (enabled) |

## Examples

+5 −5
Original line number Diff line number Diff line
@@ -410,7 +410,7 @@ stages:
    fi
  }

  if [[ -z "$TEMPLATE_CHECK_UPDATE_DISABLED" ]]; then check_for_update ansible "1.2.1"; fi
  if [[ "$TEMPLATE_CHECK_UPDATE_DISABLED" != "true" ]]; then check_for_update ansible "1.2.1"; fi
  unscope_variables
  eval_all_secrets

@@ -447,7 +447,7 @@ ansible-lint-review:
    - if: $CI_MERGE_REQUEST_ID
      when: never
    # exclude when $ANSIBLE_LINT_DISABLED is set
    - if: $ANSIBLE_LINT_DISABLED
    - if: '$ANSIBLE_LINT_DISABLED == "true"'
      when: never
    # else: allow is $ANSIBLE_REVIEW_PLAYBOOK_FILE is set
    - if: $ANSIBLE_REVIEW_PLAYBOOK_FILE
@@ -461,7 +461,7 @@ ansible-lint-integration:
    - if: $CI_MERGE_REQUEST_ID
      when: never
    # exclude when $ANSIBLE_LINT_DISABLED is set
    - if: $ANSIBLE_LINT_DISABLED
    - if: '$ANSIBLE_LINT_DISABLED == "true"'
      when: never
    # else: allow is $ANSIBLE_INTEG_PLAYBOOK_FILE is set
    - if: $ANSIBLE_INTEG_PLAYBOOK_FILE
@@ -475,7 +475,7 @@ ansible-lint-staging:
    - if: $CI_MERGE_REQUEST_ID
      when: never
    # exclude when $ANSIBLE_LINT_DISABLED is set
    - if: $ANSIBLE_LINT_DISABLED
    - if: '$ANSIBLE_LINT_DISABLED == "true"'
      when: never
    # else: allow is $ANSIBLE_INTEG_PLAYBOOK_FILE is set
    - if: $ANSIBLE_STAGING_PLAYBOOK_FILE
@@ -489,7 +489,7 @@ ansible-lint-prod:
    - if: $CI_MERGE_REQUEST_ID
      when: never
    # exclude when $ANSIBLE_LINT_DISABLED is set
    - if: $ANSIBLE_LINT_DISABLED
    - if: '$ANSIBLE_LINT_DISABLED == "true"'
      when: never
    # else: allow is $ANSIBLE_PROD_PLAYBOOK_FILE is set
    - if: $ANSIBLE_PROD_PLAYBOOK_FILE