forked from ISTI-ansible-roles/ansible-roles
postgres: fix the apt tasks.
This commit is contained in:
parent
34926ad305
commit
3f7e05bdf0
|
@ -1,12 +1,11 @@
|
|||
---
|
||||
- name: install the postgresql packages
|
||||
apt: pkg={{ item }} state={{ psql_pkg_state }}
|
||||
with_items: '{{ postgresql_pkgs }}'
|
||||
notify: Restart postgresql
|
||||
tags: [ 'postgresql', 'postgres' ]
|
||||
|
||||
- name: Install the packages that ansible needs to manage the postgresql users and databases
|
||||
apt: pkg={{ item }} state={{ psql_pkg_state }}
|
||||
with_items: '{{ psql_ansible_needed_pkgs }}'
|
||||
- block:
|
||||
- name: Install the packages that ansible needs to manage the postgresql users and databases
|
||||
apt: pkg={{ psql_ansible_needed_pkgs }} state={{ psql_pkg_state }}
|
||||
|
||||
- name: install the postgresql packages
|
||||
apt: pkg={{ postgresql_pkgs }} state={{ psql_pkg_state }}
|
||||
notify: Restart postgresql
|
||||
|
||||
tags: [ 'postgresql', 'postgres' ]
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
---
|
||||
- block:
|
||||
- name: Install the pgpool package
|
||||
apt: name={{ item }} state={{ psql_pgpool_pkg_state }}
|
||||
with_items: '{{ pgpool_pkgs }}'
|
||||
apt: name={{ pgpool_pkgs }} state={{ psql_pgpool_pkg_state }} cache_valid_time=1800
|
||||
|
||||
- name: Configure pcp
|
||||
#template: src=pcp.conf.j2 dest=/etc/pgpool2/pcp.conf owner=root group=postgres mode=0640
|
||||
|
@ -59,8 +58,7 @@
|
|||
service: name=pgpool2 state=stopped enabled=no
|
||||
|
||||
- name: Install the pgpool packages
|
||||
apt: name={{ item }} state=absent
|
||||
with_items: '{{ pgpool_pkgs }}'
|
||||
apt: name={{ pgpool_pkgs }} state=absent
|
||||
|
||||
- name: Remove the pgpool failover sudoers file
|
||||
file: dest=/etc/sudoers.d/pgpool-wd state=absent
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
- name: install the postgresql GIS packages
|
||||
apt: pkg={{ item }} state={{ psql_pkg_state }}
|
||||
with_items: '{{ postgres_gis_pkgs }}'
|
||||
apt: pkg={{ postgres_gis_pkgs }} state={{ psql_pkg_state }}
|
||||
notify: Restart postgresql
|
||||
tags: [ 'postgresql', 'postgres', 'postgis' ]
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
- name: Install the packages needed by postgres when running behind a pgpool server
|
||||
apt: pkg={{ item }} state={{ psql_pkg_state }}
|
||||
with_items: '{{ postgresql_pgpool_pkgs }}'
|
||||
apt: pkg={{ postgresql_pgpool_pkgs }} state={{ psql_pkg_state }}
|
||||
when: psql_pgpool_install
|
||||
notify: Restart postgresql
|
||||
tags: [ 'postgresql', 'postgres', 'pgpool' ]
|
||||
|
|
Loading…
Reference in New Issue