2018-11-09 00:15:11 +01:00
|
|
|
- name: install "@postgresql:9.6/client" module
|
|
|
|
dnf:
|
|
|
|
name: "@postgresql:9.6/client"
|
|
|
|
state: present
|
|
|
|
register: dnf_result
|
|
|
|
|
|
|
|
- name: verify installation of "@postgresql:9.6/client" module
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- "not dnf_result.failed"
|
|
|
|
- "dnf_result.changed"
|
|
|
|
|
|
|
|
- name: install "@postgresql:9.6/client" module again
|
|
|
|
dnf:
|
|
|
|
name: "@postgresql:9.6/client"
|
|
|
|
state: present
|
|
|
|
register: dnf_result
|
|
|
|
|
|
|
|
- name: verify installation of "@postgresql:9.6/client" module again
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- "not dnf_result.failed"
|
|
|
|
- "not dnf_result.changed"
|
|
|
|
|
|
|
|
- name: uninstall "@postgresql:9.6/client" module
|
|
|
|
dnf:
|
|
|
|
name: "@postgresql:9.6/client"
|
|
|
|
state: absent
|
|
|
|
register: dnf_result
|
|
|
|
|
|
|
|
- name: verify uninstallation of "@postgresql:9.6/client" module
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- "not dnf_result.failed"
|
|
|
|
- "dnf_result.changed"
|
|
|
|
|
|
|
|
- name: uninstall "@postgresql:9.6/client" module again
|
|
|
|
dnf:
|
|
|
|
name: "@postgresql:9.6/client"
|
2019-01-23 22:52:03 +01:00
|
|
|
state: absent
|
2018-11-09 00:15:11 +01:00
|
|
|
register: dnf_result
|
|
|
|
|
|
|
|
- name: verify uninstallation of "@postgresql:9.6/client" module again
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- "not dnf_result.failed"
|
|
|
|
- "not dnf_result.changed"
|