Enhancement: Better task structures
This commit is contained in:
parent
ff049868e2
commit
4f726e25da
8 changed files with 185 additions and 126 deletions
16
playbooks/tasks/chat/database.yml
Normal file
16
playbooks/tasks/chat/database.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue