Commit e765e825 authored by Илья Крылов's avatar Илья Крылов
Browse files

1.0.2: Alter callbacks

parent 3f4ed34f
......@@ -150,11 +150,11 @@ patroni_postgresql_authentication:
- { type: 'replication', username: '{{ patroni_replication_username }}', password: '{{ patroni_replication_password }}' }
patroni_postgresql_callbacks:
- { event: 'on_reload', script: '' }
- { event: 'on_restart', script: '' }
- { event: 'on_role_change', script: '' }
- { event: 'on_start', script: '' }
- { event: 'on_stop', script: '' }
- { event: 'on_reload', source: '', target: '' }
- { event: 'on_restart', source: '', target: '' }
- { event: 'on_role_change', source: '', target: '' }
- { event: 'on_start', source: '', target: '' }
- { event: 'on_stop', source: '', target: '' }
patroni_postgresql_create_replica_methods:
# - pgbackrest
......
......@@ -62,14 +62,14 @@
- name: Prepare callback scripts
copy:
src: 'callbacks/{{ item.event }}'
dest: '{{ item.script }}'
src: '{{ item.source }}'
dest: '{{ item.target }}'
owner: '{{ patroni_system_user }}'
group: '{{ patroni_system_group }}'
mode: 0750
backup: yes
loop: '{{ patroni_postgresql_callbacks }}'
when: not( (item.script is none) or (item.script | trim | length == 0) )
when: not( (item.target is none) or (item.target | trim | length == 0) )
- name: Create patroni systemd script
template:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment