Skip to content

Commit

Permalink
add updating of pacman cache for arch linux
Browse files Browse the repository at this point in the history
  • Loading branch information
stefangweichinger authored Aug 3, 2024
1 parent 65b0053 commit eb4b7e5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,20 @@

pre_tasks:

- name: Update apt cache.
- name: Update apt cache on Debian Linux.
ansible.builtin.apt:
update_cache: True
cache_valid_time: 600
when: ansible_facts.os_family == 'Debian'

- name: Update repositories cache on Archlinux.
community.general.pacman:
update_cache: true
when: ansible_facts.os_family == 'Archlinux'
register: pacman_result
changed_when: pacman_result.cache_updated
become: true

- name: Wait for systemd to complete initialization. # noqa command-instead-of-module
ansible.builtin.command: systemctl is-system-running
register: systemctl_status
Expand Down

0 comments on commit eb4b7e5

Please sign in to comment.