diff options
Diffstat (limited to 'roles/postgres/tasks')
-rw-r--r-- | roles/postgres/tasks/create_db.yml | 2 | ||||
-rw-r--r-- | roles/postgres/tasks/create_user.yml | 2 | ||||
-rw-r--r-- | roles/postgres/tasks/main.yml | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/roles/postgres/tasks/create_db.yml b/roles/postgres/tasks/create_db.yml index 5f8db70..d2f3676 100644 --- a/roles/postgres/tasks/create_db.yml +++ b/roles/postgres/tasks/create_db.yml @@ -1,3 +1,5 @@ +--- + - name: create database # noqa: no-changed-when ansible.builtin.command: createdb -U postgres -O "{{ postgres_db_user }}" "{{ postgres_db_name }}" register: result diff --git a/roles/postgres/tasks/create_user.yml b/roles/postgres/tasks/create_user.yml index 483e507..793676e 100644 --- a/roles/postgres/tasks/create_user.yml +++ b/roles/postgres/tasks/create_user.yml @@ -1,3 +1,5 @@ +--- + - name: create database user # noqa: no-changed-when ansible.builtin.command: createuser -U postgres "{{ postgres_db_user }}" register: result diff --git a/roles/postgres/tasks/main.yml b/roles/postgres/tasks/main.yml index 8046d40..302fba4 100644 --- a/roles/postgres/tasks/main.yml +++ b/roles/postgres/tasks/main.yml @@ -1,3 +1,5 @@ +--- + - name: install postgres ansible.builtin.package: name: |