Skip to content

Commit

Permalink
icingaweb2: run pqslcmd with LANG=C to ensure the output is in english
Browse files Browse the repository at this point in the history
* fix run pqslcmd with LANG=C to ensure the output is in english and we can match for '(0 rows)' in the next task (#241)
  • Loading branch information
johanneskastl authored Dec 22, 2023
1 parent b8c4b16 commit 69f708b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/icingaweb2/tasks/manage_icingaweb_pgsql_db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
block:
- name: PostgreSQL check for icingaweb admin user
ansible.builtin.shell: >
LANG=C
{{ _tmp_pgsqlcmd }}
-w -c "select name from icingaweb_user where name like '{{ icingaweb2_admin_username }}'"
failed_when: false
Expand Down

0 comments on commit 69f708b

Please sign in to comment.