Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix naming IcingaDB schema tasks #193

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions roles/icingadb/tasks/manage_schema_mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
-p"{{ icingadb_database_password }}"
"{{ icingadb_database_name | default('icingadb') }}"

- name: MySQL check for IDO schema
- name: MySQL check for IcingaDB schema
ansible.builtin.shell: >
{{ mysqlcmd }}
-Ns -e "select version from icingadb_schema"
Expand All @@ -21,7 +21,7 @@
check_mode: false
register: _db_schema

- name: MySQL import IDO schema
- name: MySQL import IcingaDB schema
ansible.builtin.shell: >
{{ mysqlcmd }}
< {{ icingadb_database_schema }}
Expand Down
4 changes: 2 additions & 2 deletions roles/icingadb/tasks/manage_schema_pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{% if icingadb_database_key is defined %} sslkey={{ icingadb_database_key }} {%- endif %}
{% if icingadb_database_ssl_extra_options is defined %} {{ icingadb_database_ssl_extra_options }} {%- endif %}"

- name: PgSQL check for DB schema
- name: PgSQL check for IcingaDB schema
ansible.builtin.shell: >
{{ _tmp_pgsqlcmd }}
-w -c "select version from icingadb_schema"
Expand All @@ -25,7 +25,7 @@
check_mode: false
register: _db_schema

- name: PgSQL import DB schema
- name: PgSQL import IcingaDB schema
ansible.builtin.shell: >
{{ _tmp_pgsqlcmd }}
-w -f {{ icingadb_database_schema }}
Expand Down