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:
parent
a96be1d398
commit
0d80d14b7e
1 changed files with 4 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue