Skip to content

Commit

Permalink
Improve log message
Browse files Browse the repository at this point in the history
  • Loading branch information
EMaksy committed Feb 19, 2024
1 parent 768593f commit 65a07df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/containers/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@
AMQP_URL: "{{ amqp_protocol }}://{{ rabbitmq_username }}:{{ rabbitmq_password }}@{{ rabbitmq_host }}/{{ rabbitmq_vhost | urlencode | replace('/', '%2F') }}"
DATABASE_URL: "ecto://{{ wanda_postgres_user }}:{{ wanda_postgres_password }}@{{ wanda_postgres_host }}/{{ wanda_postgres_db }}"

- name: Verify that alerting configuration variables are defined in json configuration if alerting is enabled
- name: Verify that alerting configuration variables are defined if alerting is enabled

Check failure on line 50 in roles/containers/tasks/main.yml

View workflow job for this annotation

GitHub Actions / Playbook linting

syntax-check[specific]

conflicting action statements: ansible.builtin.assert, fail_msg
ansible.builtin.assert:
that:
- alerting_env is defined
- "{{ lookup('vars', alerting_env) | length > 0 }}"
- "{{ lookup('vars', alerting_env) != None }}"
- "{{ lookup('vars', alerting_env) != '' }}"

fail_msg: "{{ alerting_env }} needs to be set in json configuration to enable alerting"
success_msg: "{{ alerting_env }} is set in json configuration"
fail_msg: "{{ alerting_env }} needs to be set in playbook variables to enable alerting"
success_msg: "{{ alerting_env }} is set in playbook variables"
loop_control:
loop_var: alerting_env
with_items:
Expand Down

0 comments on commit 65a07df

Please sign in to comment.