From b7a511599f53f89d9842e54ec95540e729a02209 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 26 Oct 2019 13:53:16 +0200 Subject: [PATCH] add demo data base to molecule --- molecule/default/playbook.yml | 2 ++ tasks/post_tasks.yml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/molecule/default/playbook.yml b/molecule/default/playbook.yml index be03b1e..a821a0a 100644 --- a/molecule/default/playbook.yml +++ b/molecule/default/playbook.yml @@ -3,6 +3,8 @@ hosts: all vars: postgres_repository_enabled: True + postgres_db: + - name: demo roles: - role: xoxys.postgres diff --git a/tasks/post_tasks.yml b/tasks/post_tasks.yml index c10f94c..faef431 100644 --- a/tasks/post_tasks.yml +++ b/tasks/post_tasks.yml @@ -2,7 +2,7 @@ - name: Force all notified handlers to activate pg_hba.conf meta: flush_handlers -- name: Ensure postgres databases exist +- name: Ensure postgres databases are present postgresql_db: name: "{{ item.name }}" lc_collate: "{{ item.lc_collate | default('en_US.UTF-8') }}" @@ -16,7 +16,7 @@ port: "{{ item.port | default(omit) }}" owner: "{{ item.owner | default(omit) }}" state: "{{ item.state | default('present') }}" - no_log: True + #no_log: True loop: "{{ postgres_db + postgres_db_extra }}" become: True become_user: "{{ postgres_user }}"