Add settings and Postgres reload handler
This commit is contained in:
parent
ecc56cf778
commit
259a396319
|
@ -1,3 +1,8 @@
|
|||
[defaults]
|
||||
ask_vault_pass = True
|
||||
inventory = inventory.ini
|
||||
interpreter_python = /usr/bin/python3
|
||||
remote_user = ansible
|
||||
remote_tmp = /tmp/.ansible
|
||||
use_persistent_connections = true
|
||||
use_persistent_connections = True
|
||||
forks = 10
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
# vim: ft=yaml.ansible
|
||||
# code: language=ansible
|
||||
---
|
||||
- name: Reload PostgreSQL
|
||||
ansible.builtin.service:
|
||||
name: "{{ postgresql_service }}"
|
||||
state: reloaded
|
||||
|
||||
- name: Reload systemd
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
|
|
|
@ -33,3 +33,4 @@
|
|||
source: "{{ internal_subnet }}"
|
||||
method: scram-sha-256
|
||||
state: present
|
||||
notify: Reload PostgreSQL
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
- postgresql{{ postgresql_version }}-server
|
||||
- python{{ ansible_python.version.major }}-psycopg2
|
||||
- python{{ ansible_python.version.major }}-ipaddress
|
||||
update_cache: true
|
||||
state: present
|
||||
|
||||
- name: Create PostgreSQL service override folder
|
||||
|
|
Loading…
Reference in a new issue