File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 8686 - name : Test with molecule
8787 run : |
8888 source ~/.venv/ansible-collection-hardening/bin/activate
89+ # Workaround for https://github.com/ansible-community/molecule-plugins/issues/301
90+ export MOLECULE_VAGRANT_PLUGIN_DIR=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')/molecule_plugins/vagrant
8991 molecule test -s os_hardening_vm
9092 env :
9193 MOLECULE_DISTRO : ${{ matrix.molecule_distro }}
Original file line number Diff line number Diff line change 6363 - name : Test with molecule
6464 run : |
6565 source ~/.venv/ansible-collection-hardening/bin/activate
66+ # Workaround for https://github.com/ansible-community/molecule-plugins/issues/301
67+ export MOLECULE_VAGRANT_PLUGIN_DIR=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')/molecule_plugins/vagrant
6668 molecule test -s ssh_hardening_bsd
6769 env :
6870 MOLECULE_DISTRO : ${{ matrix.molecule_distro }}
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ provisioner:
2525 defaults :
2626 interpreter_python : auto_silent
2727 callbacks_enabled : profile_tasks, timer, yaml
28+ # Workaround for https://github.com/ansible-community/molecule-plugins/issues/301
29+ library : " ${MOLECULE_PROJECT_DIRECTORY}/plugins/modules:/usr/share/ansible:${MOLECULE_VAGRANT_PLUGIN_DIR}"
2830verifier :
2931 name : ansible
3032 env :
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ provisioner:
2121 defaults :
2222 interpreter_python : auto_silent
2323 callbacks_enabled : profile_tasks, timer, yaml
24+ # Workaround for https://github.com/ansible-community/molecule-plugins/issues/301
25+ library : " ${MOLECULE_PROJECT_DIRECTORY}/plugins/modules:/usr/share/ansible:${MOLECULE_VAGRANT_PLUGIN_DIR}"
2426verifier :
2527 name : ansible
2628 env :
You can’t perform that action at this time.
0 commit comments