From 15459c625e54e2678d065c414ec23bbf004006d8 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 25 Mar 2024 13:42:06 +0100 Subject: [PATCH] Add the print_psql_db_data.yml file to the repository. --- tasks/main.yml | 1 + tasks/print_psql_db_data.yml | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 tasks/print_psql_db_data.yml diff --git a/tasks/main.yml b/tasks/main.yml index 63e44d7..83cab52 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,6 +1,7 @@ --- - name: Optionally print the psql_db_data contents ansible.builtin.import_tasks: print_psql_db_data.yml + when: psql_db_data is defined - import_tasks: configure-access.yml when: psql_db_data is defined - import_tasks: manage_dbs.yml diff --git a/tasks/print_psql_db_data.yml b/tasks/print_psql_db_data.yml new file mode 100644 index 0000000..d20748c --- /dev/null +++ b/tasks/print_psql_db_data.yml @@ -0,0 +1,9 @@ +--- +- name: print_psql_db_data | Optionally print the psql_db_data contents + run_once: true + tags: ['postgresql', 'postgres', 'pg_db', 'pg_user'] + block: + - name: print_psql_db_data | Print the psql_db_data values + ansible.builtin.debug: + var: psql_db_data + no_log: "{{ pgsql_show_db_data }}"