Skip to content

Commit f377395

Browse files
authored
Update ArchLinux test environment before testing (#908)
* Update ArchLinux test environment before testing Update Arch packages and Keyrings to avoid problems when installing Ansible and dependencies.
1 parent e4d736c commit f377395

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

molecule/os_hardening_vm/prepare.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,15 @@
6969
community.general.pacman:
7070
name:
7171
- awk
72-
state: present
72+
- archlinux-keyring
73+
state: latest
74+
update_cache: true
75+
when: ansible_facts.os_family == 'Archlinux'
76+
77+
- name: Run the equivalent of "pacman -Syu"
78+
community.general.pacman:
7379
update_cache: true
80+
upgrade: true
7481
when: ansible_facts.os_family == 'Archlinux'
7582

7683
- name: Install required tools on RHEL # noqa ignore-errors

0 commit comments

Comments
 (0)