mirror of https://github.com/ansible/ansible.git
dnf to support modularity module appstream specs
Fixes #48743 Signed-off-by: Adam Miller <admiller@redhat.com> (cherry picked from commitpull/48910/head4a06e95671
) fix up sanity tests and with_modules conditional Signed-off-by: Adam Miller <admiller@redhat.com> (cherry picked from commit23b60035a1
) fix yamllint sanity Signed-off-by: Adam Miller <admiller@redhat.com> (cherry picked from commit2b878546d3
) fix group-missing/invalid-group detection Signed-off-by: Adam Miller <admiller@redhat.com> (cherry picked from commit41176b5e0f
)
parent
1cba0a753a
commit
64cea41f6b
@ -0,0 +1,3 @@
|
||||
---
|
||||
minor_changes:
|
||||
- "dnf properly support modularity appstream installation via overloaded group modifier syntax"
|
@ -0,0 +1,47 @@
|
||||
- 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: install
|
||||
register: dnf_result
|
||||
|
||||
- name: verify uninstallation of "@postgresql:9.6/client" module again
|
||||
assert:
|
||||
that:
|
||||
- "not dnf_result.failed"
|
||||
- "not dnf_result.changed"
|
Loading…
Reference in New Issue