From 0d80d14b7e44c16af3489880ecf98fd85426988c Mon Sep 17 00:00:00 2001 From: A Holt Date: Wed, 28 Oct 2020 12:37:11 -0400 Subject: [PATCH] PostgreSQL for Debian 11 --- roles/postgresql/tasks/install.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/roles/postgresql/tasks/install.yml b/roles/postgresql/tasks/install.yml index 7b6c46aca..b44ddc3e0 100644 --- a/roles/postgresql/tasks/install.yml +++ b/roles/postgresql/tasks/install.yml @@ -68,32 +68,24 @@ group: postgres mode: '0640' -# Likely No Longer Nec! Given stanza below does the same... -#- name: 'Stop postgresql service: /etc/init.d/postgresql stop (debuntu)' -# command: "/etc/init.d/postgresql stop" -# ignore_errors: True -# when: postgresql_install and is_debuntu - - name: Disable & Stop stock 'postgresql' systemd service systemd: name: postgresql state: stopped enabled: no -- name: Disable & Stop stock 'postgresql@11-main.service' systemd service - debian-10 +- name: Disable & Stop stock 'postgresql@11-main.service' systemd service, if real Debian 10 systemd: name: postgresql@11-main.service state: stopped enabled: no -# when: is_debian_10 - when: is_debian_10 and not is_raspbian + when: is_debian_10 and not is_raspbian # Debian 11 appears not to need such -- name: Disable & Stop stock 'postgresql@' systemd service - debian-10 +- name: Disable & Stop stock 'postgresql@' systemd service, for real Debian 10+ systemd: name: postgresql@ enabled: no -# when: is_debian_10 - when: is_debian_10 and not is_raspbian + when: is_debian and not is_raspbian # Especially for Debian 10, 11 & higher # RECORD PostgreSQL AS INSTALLED