Skip to content

Commit

Permalink
install Ansible for VM tests
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Schurz <[email protected]>
  • Loading branch information
schurzi committed Oct 3, 2024
1 parent 1d3ee96 commit 77aa5bf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/os_hardening_vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ jobs:
path: ansible_collections/devsec/hardening
submodules: true

- name: Install dependencies
run: |
python -m pip install --no-cache-dir --upgrade pip
pip install -r requirements.txt
working-directory: ansible_collections/devsec/hardening

- name: Downgrade Ansible for Rocky 8 tests
run: |
pip install "ansible-core<2.17"
working-directory: ansible_collections/devsec/hardening
if: matrix.molecule_distro == 'eneric/rocky8' || matrix.molecule_distro == 'generic/opensuse15'

- name: Update Vagrant Box
run: |
vagrant box update --box ${{ matrix.molecule_distro }} || true
Expand Down

0 comments on commit 77aa5bf

Please sign in to comment.