-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathargument_specs.yml
147 lines (147 loc) · 5.23 KB
/
argument_specs.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# Copyright 2020-2025 Chris Croome
#
# This file is part of the Webarchitects PostgreSQL Ansible role.
#
# The Webarchitects PostgreSQL Ansible role is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
#
# The Webarchitects PostgreSQL Ansible role is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with the Webarchitects PostgreSQL Ansible role. If not, see <https://www.gnu.org/licenses/>.
---
argument_specs:
main:
author: Chris Croome
description: Ansible role to install PostgreSQL on Debian and optionally create a user and database.
short_description: The main entry point for the PostgreSQL role.
options:
postgresql:
type: bool
required: true
description: Run the tasks in this role.
postgresql_backups:
type: str
required: false
description: Directory for PostgreSQL backups.
postgresql_cron_hour:
type: str
required: false
description: Hour for PostgreSQL backup creation.
postgresql_cron_min_list:
type: list
elements: str
description: Internal list of minutes that can be used for the backup crontab entry.
postgresql_cron_min_regex:
type: str
required: false
description: Internal regex for the crontab minute.
postgresql_db:
type: str
required: false
description: PostgreSQL database name.
postgresql_db_encoding:
type: str
required: false
description: PostgreSQL database encoding.
postgresql_db_lc_collate:
type: str
required: false
description: PostgreSQL database collation order (LC_COLLATE).
postgresql_db_lc_ctype:
type: str
required: false
description: PostgreSQL database character classification (LC_CTYPE).
postgresql_db_locale:
type: str
required: false
description: PostgreSQL database locale.
postgresql_db_owner:
type: str
required: false
description: PostgreSQL database owner.
postgresql_db_state:
type: str
required: false
description: PostgreSQL database state.
choices:
- absent
- present
postgresql_host:
type: str
required: true
description: PostgreSQL host.
postgresql_maintenance_db:
type: str
required: true
description: PostgreSQL initial database (which is also called as maintenance DB) that Ansible connects to.
postgresql_pkgs:
type: list
elements: str
required: false
description: A list of .deb packages that should be present.
postgresql_port:
type: int
required: true
description: PostgreSQL port number.
postgresql_postgres_home_query:
type: str
required: true
description: Internal JMESPATH query variable.
postgresql_psycopg_pkg:
type: list
required: true
description: Internal list of psycopg packges for different Debian / Ubuntu versions
options:
distro:
type: str
required: true
description: The value of the ansible_facts.distribution_release variable.
pkg:
type: str
required: true
description: The name of the psycopg package.
postgresql_psycopg_pkg_query:
type: str
required: true
description: Internal JMESPath query for the distro / psycopg package.
postgresql_superuser:
type: str
required: true
description: PostgreSQL superuser.
postgresql_user:
type: str
required: false
description: PostgreSQL user name.
postgresql_user_canlogin_query:
type: str
required: true
description: Internal JMESPath query used with the community.postgresql.postgresql_info module results.
postgresql_user_privs:
type: str
required: false
description: PostgreSQL user database privileges list, comma separated.
postgresql_validate:
type: bool
required: true
description: Vaildate all variables that start with postgresql_.
pgpass_read:
author: Chris Croome
description: Ansible role to install PostgreSQL on Debian and optionally create a user and database.
short_description: The read PostgreSQL user password entry point for the PostgreSQL role.
options:
postgresql_db:
type: str
required: false
description: The PostgreSQL database name.
postgresql_host:
type: str
required: true
description: PostgreSQL host.
postgresql_port:
type: int
required: true
description: PostgreSQL port number.
postgresql_user:
type: str
required: false
description: The PostgreSQL user name.
...