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>
pull/8626/head
Daskan 2024-07-14 12:05:53 +02:00 committed by GitHub
parent 8990f97b45
commit 9f3103e891
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 0 deletions

View File

@ -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'''