1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

PostgreSQL for Debian 11

This commit is contained in:
A Holt 2020-10-28 12:37:11 -04:00 committed by GitHub
parent a96be1d398
commit 0d80d14b7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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