Enhancement: Better task structures

This commit is contained in:
Stupéflo 2024-05-20 15:12:19 +02:00
parent ff049868e2
commit e0314da734
Signed by: stupeflo
GPG key ID: 873D883BD359DEE2
8 changed files with 185 additions and 126 deletions

View file

@ -0,0 +1,16 @@
---
- name: Ensure database user Exists
community.postgresql.postgresql_user:
user: movim
password: movim
state: present
become_user: "{{ postgres.user }}"
become: true
- name: Ensure database exists
community.postgresql.postgresql_db:
name: movim
owner: movim
state: present
become_user: "{{ postgres.user }}"
become: true