mirror of
https://github.com/geerlingguy/ansible-role-postgresql.git
synced 2025-03-10 17:26:20 -04:00
Fix enablerepo empty string behavior to work around Ansible 2.7.0 bug.
This commit is contained in:
parent
358b31bcaa
commit
7b9a3837ac
1 changed files with 3 additions and 4 deletions
|
@ -1,13 +1,12 @@
|
|||
---
|
||||
- name: Ensure PostgreSQL packages are installed.
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
name: "{{ postgresql_packages }}"
|
||||
state: present
|
||||
enablerepo: "{{ postgresql_enablerepo }}"
|
||||
with_items: "{{ postgresql_packages }}"
|
||||
enablerepo: "{{ postgresql_enablerepo | default(omit, true) }}"
|
||||
|
||||
- name: Ensure PostgreSQL Python libraries are installed.
|
||||
package:
|
||||
name: "{{ postgresql_python_library }}"
|
||||
state: present
|
||||
enablerepo: "{{ postgresql_enablerepo }}"
|
||||
enablerepo: "{{ postgresql_enablerepo | default(omit, true) }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue