roles/postgresql-server: Remove postgresql-setup
The *postgresql-setup* service is no longer necessary, as upstream has fixed the SELinux policy to allow root to invoke the `postgresql-setup` command directly.jenkins-master
parent
f4e5aacf52
commit
a614f7b5c7
|
@ -4,18 +4,11 @@
|
|||
state=present
|
||||
tags:
|
||||
- install
|
||||
- name: ensure postgresql data directory exists
|
||||
command:
|
||||
postgresql-setup initdb
|
||||
creates={{ pgdata_dir }}/PG_VERSION
|
||||
|
||||
- name: ensure postgresql-setup unit is installed
|
||||
template:
|
||||
src=postgresql-setup.service.j2
|
||||
dest=/etc/systemd/system/postgresql-setup.service
|
||||
mode=0644
|
||||
notify: reload systemd
|
||||
- meta: flush_handlers
|
||||
- name: ensure postgresql-setup has started
|
||||
service:
|
||||
name=postgresql-setup
|
||||
state=started
|
||||
- name: ensure postgresql server certificate is installed
|
||||
copy:
|
||||
src: '{{ item }}'
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
[Unit]
|
||||
Before=postgresql.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=true
|
||||
Environment=PGDATA={{ pgdata_dir }}
|
||||
Environment=LANG={{ pg_locale }}
|
||||
User=postgres
|
||||
Group=postgres
|
||||
ExecStart=/bin/sh -c "[ -f ${PGDATA}/PG_VERSION ] || initdb -D ${PGDATA}"
|
Loading…
Reference in New Issue