Skip to content

Commit

Permalink
check if postgresql packages are installed for postgresql_exists: "tr…
Browse files Browse the repository at this point in the history
…ue".

If the package is missing, it will be installed.

This is necessary because in postgresql_packages variable can also specifyed other packages, such as extensions.
  • Loading branch information
vitabaks committed Feb 12, 2020
1 parent ad5e21d commit a226a20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
package:
name: "{{ item }}"
update_cache: yes
state: present
loop: "{{ postgresql_packages }}"
environment: '{{ proxy_env | default({}) }}'
when: installation_method == "repo" and postgresql_exists != "true"
when: installation_method == "repo"
tags: install_postgres

0 comments on commit a226a20

Please sign in to comment.