diff --git a/lib/ansible/modules/packaging/os/zypper.py b/lib/ansible/modules/packaging/os/zypper.py index a3fe2aa2b1..e219de5082 100644 --- a/lib/ansible/modules/packaging/os/zypper.py +++ b/lib/ansible/modules/packaging/os/zypper.py @@ -168,7 +168,14 @@ EXAMPLES = ''' # Install specific version (possible comparisons: <, >, <=, >=, =) - zypper: name: 'docker>=1.10' - state: installed + state: present + +# Wait 20 seconds to acquire the lock before failing +- zypper: + name: mosh + state: present + environment: + ZYPP_LOCK_TIMEOUT: 20 '''