diff --git a/.github/workflows/ansible.yml b/.github/workflows/ansible.yml index c8f77de671..750369a0d3 100644 --- a/.github/workflows/ansible.yml +++ b/.github/workflows/ansible.yml @@ -172,6 +172,19 @@ jobs: url=$( echo "$json" | jq -r ".versions[] | select(.version == \"${box_version}\") | .providers[] | select(.name == \"virtualbox\") | .url" ) wget -nv -O /tmp/vagrant.box $url + - name: Clean VirtualBox cache + run: | + # Related issues: + # https://bbs.archlinux.org/viewtopic.php?id=298056 + # https://forums.virtualbox.org/viewtopic.php?t=112438 + # https://forums.virtualbox.org/viewtopic.php?t=112481 + echo "3" | sudo tee /proc/sys/vm/drop_caches + echo "1" | sudo tee /proc/sys/vm/drop_caches + + - name: free after clean cache + run: | + free -h + - name: Run Molecule tests. run: molecule --debug -v --base-config ./molecule/config/windows.yml test -s ${{ matrix.scenario }} -p ${{ matrix.distro }} env: diff --git a/deployments/ansible/molecule/config/windows.yml b/deployments/ansible/molecule/config/windows.yml index 84470a7037..6e16d1a9f4 100644 --- a/deployments/ansible/molecule/config/windows.yml +++ b/deployments/ansible/molecule/config/windows.yml @@ -9,11 +9,11 @@ driver: name: virtualbox platforms: - name: "2016" - box: cdaf/WindowsServer - box_version: ${MOLECULE_VAGRANT_BOX_VERSION:-2022.09.01} + box: StefanScherer/windows_2016 + box_version: ${MOLECULE_VAGRANT_BOX_VERSION:-2019.02.14} box_url: ${MOLECULE_VAGRANT_BOX_URL} cpus: 2 - memory: 4096 + memory: 8192 provider_options: gui: false linked_clone: true @@ -29,11 +29,11 @@ platforms: - "winrm.retry_limit = 50" - "winrm.retry_delay = 10" - name: "2019" - box: gusztavvargadr/windows-server-2019-standard - box_version: ${MOLECULE_VAGRANT_BOX_VERSION:-1809.0.2312} + box: StefanScherer/windows_2019 + box_version: ${MOLECULE_VAGRANT_BOX_VERSION:-2021.05.15} box_url: ${MOLECULE_VAGRANT_BOX_URL} cpus: 2 - memory: 4096 + memory: 8192 provider_options: gui: false linked_clone: true @@ -43,7 +43,7 @@ platforms: box_version: ${MOLECULE_VAGRANT_BOX_VERSION:-2102.0.2312} box_url: ${MOLECULE_VAGRANT_BOX_URL} cpus: 2 - memory: 4096 + memory: 8192 provider_options: gui: false linked_clone: true