diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-11 22:03:20 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-11 22:03:20 +0100 |
| commit | 0ec434db7f23b48718647945722df6c88788d21f (patch) | |
| tree | 0eefb87aea9ce1f287f378a784f6fde437587318 /molecule/archlinux | |
| parent | 523e9a594a49669da99d5f7b39a7a90e3aec6244 (diff) | |
Add the refresh pkg mgr pre_task avoid error locally and mimic playbooks
Diffstat (limited to 'molecule/archlinux')
| -rw-r--r-- | molecule/archlinux/converge.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/molecule/archlinux/converge.yml b/molecule/archlinux/converge.yml index 7fa70007..dfbb7d95 100644 --- a/molecule/archlinux/converge.yml +++ b/molecule/archlinux/converge.yml @@ -16,6 +16,14 @@ - role: "user" - role: "ssh" - role: "password_policy" + pre_tasks: + - name: "Update package cache" + become: true + ansible.builtin.package: + update_cache: true + async: 60 + poll: 5 + failed_when: false tasks: - name: "Configure passwordless sudo for testing" ansible.builtin.copy: |
