|
|
@ -10,12 +10,12 @@
|
|
|
|
# Make sure we start fresh
|
|
|
|
# Make sure we start fresh
|
|
|
|
- name: remove rpm dependencies for postgresql test
|
|
|
|
- name: remove rpm dependencies for postgresql test
|
|
|
|
package: name={{ item }} state=absent
|
|
|
|
package: name={{ item }} state=absent
|
|
|
|
with_items: postgresql_packages
|
|
|
|
with_items: "{{postgresql_packages}}"
|
|
|
|
when: ansible_os_family == "RedHat"
|
|
|
|
when: ansible_os_family == "RedHat"
|
|
|
|
|
|
|
|
|
|
|
|
- name: remove dpkg dependencies for postgresql test
|
|
|
|
- name: remove dpkg dependencies for postgresql test
|
|
|
|
apt: name={{ item }} state=absent
|
|
|
|
apt: name={{ item }} state=absent
|
|
|
|
with_items: postgresql_packages
|
|
|
|
with_items: "{{postgresql_packages}}"
|
|
|
|
when: ansible_pkg_mgr == 'apt'
|
|
|
|
when: ansible_pkg_mgr == 'apt'
|
|
|
|
|
|
|
|
|
|
|
|
- name: remove old db (red hat)
|
|
|
|
- name: remove old db (red hat)
|
|
|
@ -36,12 +36,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
- name: install rpm dependencies for postgresql test
|
|
|
|
- name: install rpm dependencies for postgresql test
|
|
|
|
package: name={{ item }} state=latest
|
|
|
|
package: name={{ item }} state=latest
|
|
|
|
with_items: postgresql_packages
|
|
|
|
with_items: "{{postgresql_packages}}"
|
|
|
|
when: ansible_os_family == "RedHat"
|
|
|
|
when: ansible_os_family == "RedHat"
|
|
|
|
|
|
|
|
|
|
|
|
- name: install dpkg dependencies for postgresql test
|
|
|
|
- name: install dpkg dependencies for postgresql test
|
|
|
|
apt: name={{ item }} state=latest
|
|
|
|
apt: name={{ item }} state=latest
|
|
|
|
with_items: postgresql_packages
|
|
|
|
with_items: "{{postgresql_packages}}"
|
|
|
|
when: ansible_pkg_mgr == 'apt'
|
|
|
|
when: ansible_pkg_mgr == 'apt'
|
|
|
|
|
|
|
|
|
|
|
|
- name: Initialize postgres (systemd)
|
|
|
|
- name: Initialize postgres (systemd)
|
|
|
|