From 29b7e824e577a19dbd1cb4e7836a048ad01cbe5c Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 11 Dec 2017 18:50:36 +0100 Subject: [PATCH] postgresql: comment out the task that handle the schemas. The conditionals do not work. --- postgresql/tasks/manage_pg_db.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/postgresql/tasks/manage_pg_db.yml b/postgresql/tasks/manage_pg_db.yml index ee27711..3a57ce2 100644 --- a/postgresql/tasks/manage_pg_db.yml +++ b/postgresql/tasks/manage_pg_db.yml @@ -15,15 +15,18 @@ when: item.managedb | default(True) tags: [ 'postgresql', 'postgres', 'pg_db' ] -- name: Add schemas to a database. - become: True - become_user: postgres - postgresql_schema: database={{ item.0.name }} port={{ psql_db_port }} name={{ item.1 }} owner={{ item.0.user }} state={{ item.0.schemastate | default('present') }} - with_subelements: - - '{{ psql_db_data | default([]) }}' - - schema - when: item.manageschema | default(False) - tags: [ 'postgresql', 'postgres', 'pg_db', 'pg_schema' ] +# - name: Add schemas to a database. +# become: True +# become_user: postgres +# postgresql_schema: database={{ item.0.name }} port={{ psql_db_port }} name={{ item.1 }} owner={{ item.0.user }} state={{ item.0.schemastate | default('present') }} +# with_subelements: +# - '{{ psql_db_data | default([]) }}' +# - schema +# when: +# - item.0.manageschema | default(False) +# - item.1 is defined +# ignore_errors: True +# tags: [ 'postgresql', 'postgres', 'pg_db', 'pg_schema' ] - name: Define a user with password, with no associated DBs become: True