Skip to content

Commit c20d479

Browse files
committed
Update postgresql_db yaml syntax.
1 parent 82e1300 commit c20d479

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

roles/db/tasks/main.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@
3535
- name: Ensure database is created
3636
become: true
3737
become_user: postgres
38-
postgresql_db: name={{ db_name }}
39-
encoding='UTF-8'
40-
lc_collate='en_US.UTF-8'
41-
lc_ctype='en_US.UTF-8'
42-
template='template0'
43-
state=present
38+
postgresql_db:
39+
name: "{{ db_name }}"
40+
encoding: UTF-8
41+
lc_collate: en_US.UTF-8
42+
lc_ctype: en_US.UTF-8
43+
template: template0
44+
state: present
4445

4546
- name: Ensure user has access to the database
4647
become: true

0 commit comments

Comments
 (0)