Skip to content

Commit 7b246a4

Browse files
author
Greg Clough
committed
Fixed more merging problems
1 parent 722204e commit 7b246a4

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

handlers/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
state: restarted
1313
enabled: yes
1414
when: ansible_service_mgr == 'systemd'
15+

tasks/extensions/contrib.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
- name: PostgreSQL | Extensions | Make sure the postgres contrib extensions are installed | Debian
44
apt:
5-
name: "postgresql-contrib-{{ postgresql_version }}"
5+
name: "postgresql-contrib-{{postgresql_version}}"
66
state: present
77
update_cache: yes
8-
cache_valid_time: "{{ apt_cache_valid_time | default (3600) }}"
8+
cache_valid_time: "{{apt_cache_valid_time | default (3600)}}"
99
when: ansible_os_family == "Debian"
1010
notify:
1111
- restart postgresql
1212

1313
- name: PostgreSQL | Extensions | Make sure the postgres contrib extensions are installed | RedHat
1414
yum:
15-
name: "postgresql{{ postgresql_version_terse }}-contrib"
15+
name: "postgresql{{postgresql_version_terse}}-contrib"
1616
state: present
1717
when: ansible_pkg_mgr == "yum" and ansible_distribution == "RedHat"
1818
notify:
@@ -25,3 +25,4 @@
2525
when: ansible_pkg_mgr == "dnf" and ansible_distribution == "Fedora"
2626
notify:
2727
- restart postgresql
28+

tasks/extensions/dev_headers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
name: libpq-dev
66
state: present
77
update_cache: yes
8-
cache_valid_time: "{{ apt_cache_valid_time | default (3600) }}"
8+
cache_valid_time: "{{apt_cache_valid_time | default (3600)}}"
99
when: ansible_os_family == "Debian"
1010
notify:
11-
- restart postgresql with service
11+
- restart postgresql
1212

1313
- name: PostgreSQL | Extensions | Make sure the development headers are installed | RedHat
1414
yum:

tasks/extensions/postgis.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
# file: postgresql/tasks/extensions/postgis.yml
22

3+
- include_vars: "{{ item }}"
4+
with_first_found:
5+
- "../vars/{{ ansible_distribution_release }}.yml"
6+
- "../vars/empty.yml"
7+
38
- name: PostgreSQL | Extensions | Make sure the postgis extensions are installed | Debian
49
apt:
5-
name: "{{ item }}"
10+
name: "{{item}}"
611
state: present
712
update_cache: yes
8-
cache_valid_time: "{{ apt_cache_valid_time | default (3600) }}"
13+
cache_valid_time: "{{apt_cache_valid_time | default (3600)}}"
914
with_items: "{{ postgresql_ext_postgis_deps }}"
1015
when: ansible_os_family == "Debian"
1116
notify:
1217
- restart postgresql
1318

1419
- name: PostgreSQL | Extensions | Make sure the postgis extensions are installed | RedHat
1520
yum:
16-
name: "{{ item }}"
21+
name: "{{item}}"
1722
state: present
1823
update_cache: yes
1924
with_items: "{{ postgresql_ext_postgis_deps }}"
@@ -28,3 +33,4 @@
2833
when: ansible_pkg_mgr == "dnf" and ansible_distribution == "Fedora"
2934
notify:
3035
- restart postgresql
36+

0 commit comments

Comments
 (0)