Use fixed test env for BSD VMs

Signed-off-by: Martin Schurz <[email protected]>
This commit is contained in:
Martin Schurz committed 2025-07-24 11:32:55 +02:00
1 parent c5d9e8aaeb
commit bb7e74407d
1 file changed
+13 -2
+13 -2
View File
@@ -46,11 +46,22 @@ jobs:
path: ansible_collections/devsec/hardening
submodules: true
- name: Install dependencies
run: |
source ~/.venv/ansible-collection-hardening/bin/activate
python -m pip install --no-cache-dir --upgrade pip
pip install -r requirements.txt
pip install python-vagrant
working-directory: ansible_collections/devsec/hardening
- name: Update Vagrant Box
run: vagrant box update --box generic/${{ matrix.molecule_distro }} || true
run: |
vagrant box update --box generic/${{ matrix.molecule_distro }} || true
- name: Test with molecule
run: molecule test -s ssh_hardening_bsd
run: |
source ~/.venv/ansible-collection-hardening/bin/activate
molecule test -s ssh_hardening_bsd
env:
MOLECULE_DISTRO: ${{ matrix.molecule_distro }}
working-directory: ansible_collections/devsec/hardening