Fix enablerepo empty string behavior to work around Ansible 2.7.0 bug.

This commit is contained in:
Jeff Geerling 2018-10-08 15:23:30 -05:00
parent 358b31bcaa
commit 7b9a3837ac
1 changed files with 3 additions and 4 deletions

View File

@ -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) }}"