From 6fc80f3242dfc50ab89b2fdc304fb01be38bedaa Mon Sep 17 00:00:00 2001 From: Andrew Shu Date: Sat, 9 Nov 2024 21:45:00 -0800 Subject: [PATCH] ansible: fix pgbouncer in Docker rm /etc/init.d/pgbouncer --- ansible/roles/pgbouncer/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ansible/roles/pgbouncer/tasks/main.yml b/ansible/roles/pgbouncer/tasks/main.yml index ce187b6..ab6099b 100644 --- a/ansible/roles/pgbouncer/tasks/main.yml +++ b/ansible/roles/pgbouncer/tasks/main.yml @@ -3,6 +3,17 @@ apt: name: pgbouncer +- name: Remove pgbouncer from init.d (may conflict with systemd service) + file: + path: /etc/init.d/pgbouncer + state: absent + when: is_docker + +- name: Update rc.d to reflect init.d removal + command: + cmd: update-rc.d pgbouncer remove + when: is_docker + - name: Add pgbouncer.ini template: src: pgbouncer.ini.jinja2