mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
[PR #8556/9f3103e8 backport][stable-9] Add example to rpm_ostree_pkg (#8620)
Add example to rpm_ostree_pkg (#8556)
* Update rpm_ostree_pkg.py
expand examples list with 'until' example
* Apply suggestions from code review.
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 9f3103e891)
Co-authored-by: Daskan <kevin81991@web.de>
This commit is contained in:
@@ -55,6 +55,17 @@ EXAMPLES = r'''
|
|||||||
community.general.rpm_ostree_pkg:
|
community.general.rpm_ostree_pkg:
|
||||||
name: nfs-utils
|
name: nfs-utils
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
|
# In case a different transaction is currently running the module would fail.
|
||||||
|
# Adding a delay can help mitigate this problem:
|
||||||
|
- name: Install overlay package
|
||||||
|
community.general.rpm_ostree_pkg:
|
||||||
|
name: nfs-utils
|
||||||
|
state: present
|
||||||
|
register: rpm_ostree_pkg
|
||||||
|
until: rpm_ostree_pkg is not failed
|
||||||
|
retries: 10
|
||||||
|
dealy: 30
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = r'''
|
RETURN = r'''
|
||||||
|
|||||||
Reference in New Issue
Block a user