You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-14Lines changed: 34 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -18,34 +18,37 @@ To install:
18
18
ansible-galaxy install ANXS.postgresql
19
19
```
20
20
21
+
21
22
#### Dependencies
22
23
23
24
- ANXS.monit ([Galaxy](https://galaxy.ansible.com/list#/roles/502)/[GH](https://github.com/ANXS/monit)) if you want monit protection (in that case, you should set `monit_protection: true`)
-:grey_question: - will work in the future (help out if you can)
38
40
-:interrobang: - maybe works, not tested
39
41
-:no_entry: - PostgreSQL has reached EOL
40
42
43
+
41
44
#### Variables
42
45
43
46
```yaml
44
47
# Basic settings
45
48
postgresql_version: 9.6
46
-
postgresql_encoding: 'UTF-8'
47
-
postgresql_locale: 'en_US.UTF-8'
48
-
postgresql_ctype: 'en_US.UTF-8'
49
+
postgresql_encoding: "UTF-8"
50
+
postgresql_locale: "en_US.UTF-8"
51
+
postgresql_ctype: "en_US.UTF-8"
49
52
50
53
postgresql_admin_user: "postgres"
51
54
postgresql_default_auth_method: "trust"
@@ -63,9 +66,9 @@ postgresql_databases:
63
66
hstore: yes # flag to install the hstore extension on this database (yes/no)
64
67
uuid_ossp: yes # flag to install the uuid-ossp extension on this database (yes/no)
65
68
citext: yes # flag to install the citext extension on this database (yes/no)
66
-
encoding: 'UTF-8'# override global {{ postgresql_encoding }} variable per database
67
-
lc_collate: 'en_GB.UTF-8'# override global {{ postgresql_locale }} variable per database
68
-
lc_ctype: 'en_GB.UTF-8'# override global {{ postgresql_ctype }} variable per database
69
+
encoding: "UTF-8"# override global {{ postgresql_encoding }} variable per database
70
+
lc_collate: "en_GB.UTF-8"# override global {{ postgresql_locale }} variable per database
71
+
lc_ctype: "en_GB.UTF-8"# override global {{ postgresql_ctype }} variable per database
69
72
70
73
# List of database extensions to be created (optional)
71
74
postgresql_database_extensions:
@@ -88,10 +91,11 @@ postgresql_user_privileges:
88
91
role_attr_flags: "CREATEDB"# role attribute flags
89
92
```
90
93
91
-
There's a lot more knobs and bolts to set, which you can find in the defaults/main.yml
94
+
There's a lot more knobs and bolts to set, which you can find in the [defaults/main.yml](./defaults/main.yml)
92
95
93
96
94
97
#### Testing
98
+
95
99
This project comes with a Vagrantfile, this is a fast and easy way to test changes to the role, fire it up with `vagrant up`
96
100
97
101
See [vagrant docs](https://docs.vagrantup.com/v2/) for getting setup with vagrant
@@ -102,14 +106,30 @@ If you want to toy with the test play, see [tests/playbook.yml](./tests/playbook
102
106
103
107
If you are contributing, please first test your changes within the vagrant environment, (using the targeted distribution), and if possible, ensure your change is covered in the tests found in [.travis.yml](./.travis.yml)
104
108
109
+
105
110
#### License
106
111
107
112
Licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.
Copy file name to clipboardExpand all lines: tasks/configure.yml
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -154,3 +154,8 @@
154
154
mode: u=rwX,g=rwXs,o=rx
155
155
notify: restart postgresql with service
156
156
157
+
- name: PostgreSQL | Reload all conf files
158
+
service:
159
+
name: "{{ postgresql_service_name }}"
160
+
state: reloaded
161
+
when: postgresql_configuration_pt1.changed or postgresql_configuration_pt2.changed or postgresql_configuration_pt3.changed or postgresql_systemd_custom_conf.changed
0 commit comments