mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
now captures cache fetch failures
This commit is contained in:
@@ -619,6 +619,8 @@ def main():
|
||||
|
||||
except apt.cache.LockFailedException:
|
||||
module.fail_json(msg="Failed to lock apt for exclusive operation")
|
||||
except apt.cache.FetchFailedException:
|
||||
module.fail_json(msg="Could not fetch updated apt files")
|
||||
|
||||
# import module snippets
|
||||
from ansible.module_utils.basic import *
|
||||
|
||||
Reference in New Issue
Block a user