File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
# file: postgresql/tasks/extensions/dev_headers.yml
2
2
3
- - name : PostgreSQL | Extensions | Make sure the development headers are installed
3
+ - name : PostgreSQL | Extensions | Make sure the development headers are installed | Debian
4
4
apt :
5
5
name : libpq-dev
6
6
state : present
7
7
update_cache : yes
8
8
cache_valid_time : " {{apt_cache_valid_time | default (3600)}}"
9
+ when : ansible_os_family == "Debian"
10
+ notify :
11
+ - restart postgresql
12
+
13
+ - name : PostgreSQL | Extensions | Make sure the development headers are installed | RedHat
14
+ yum : " name={{ item }} state=present update_cache=yes"
15
+ with_items :
16
+ - " postgresql{{ postgresql_version_terse }}-libs"
17
+ - " postgresql{{ postgresql_version_terse }}-devel"
18
+ when : ansible_os_family == "RedHat"
9
19
notify :
10
20
- restart postgresql
You can’t perform that action at this time.
0 commit comments