-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcommunity.postgresql.code-snippets
35 lines (35 loc) · 1.17 KB
/
community.postgresql.code-snippets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"Community.Postgresql.Postgresql_db": {
"prefix": [
"community.postgresql.postgresql_db",
"postgresql_db"
],
"body": [
"- name: ${1:Description}",
" community.postgresql.postgresql_db:",
" name: \"${2:database_name}\"",
" ${3:owner: \"${4:owner_name}\"}",
" ${5:template: \"${6:template_name}\"}",
" ${7:encoding: \"${8:UTF8}\"}",
"$0"
],
"description": "Used for Ansible Postgresql_db Module to make a new Postgresql Database",
"scope": "ansible"
},
"Community.Postgresql.Postgresql_user": {
"prefix": [
"community.postgresql.postgresql_user",
"postgresql_user"
],
"body": [
"- name: ${1:Description}",
" community.postgresql.postgresql_user:",
" name: \"${2:user_name}\"",
" state: \"${3|present,absent|}\"",
" role_attr_flags: \"${4:CREATEDB}\"",
"$0"
],
"description": "Used for Ansible Postgresql User module to make a new user",
"scope": "ansible"
},
}