mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
a20d0d1afb
* update/enable rhel8 beta integration tests for yum and dnf Signed-off-by: Adam Miller <admiller@redhat.com> * fix typo in conditional for dnf/tasks/main.yml Signed-off-by: Adam Miller <admiller@redhat.com> * fix var scoping for environment checks Signed-off-by: Adam Miller <admiller@redhat.com> * Disable install via path on RHEL.
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
- 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"
|
|
state: absent
|
|
register: dnf_result
|
|
|
|
- name: verify uninstallation of "@postgresql:9.6/client" module again
|
|
assert:
|
|
that:
|
|
- "not dnf_result.failed"
|
|
- "not dnf_result.changed"
|