Skip to content

Commit 77aa5bf

Browse files
committed
install Ansible for VM tests
Signed-off-by: Martin Schurz <[email protected]>
1 parent 1d3ee96 commit 77aa5bf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/os_hardening_vm.yml

+12
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ jobs:
5555
path: ansible_collections/devsec/hardening
5656
submodules: true
5757

58+
- name: Install dependencies
59+
run: |
60+
python -m pip install --no-cache-dir --upgrade pip
61+
pip install -r requirements.txt
62+
working-directory: ansible_collections/devsec/hardening
63+
64+
- name: Downgrade Ansible for Rocky 8 tests
65+
run: |
66+
pip install "ansible-core<2.17"
67+
working-directory: ansible_collections/devsec/hardening
68+
if: matrix.molecule_distro == 'eneric/rocky8' || matrix.molecule_distro == 'generic/opensuse15'
69+
5870
- name: Update Vagrant Box
5971
run: |
6072
vagrant box update --box ${{ matrix.molecule_distro }} || true

0 commit comments

Comments
 (0)