Skip to content

Commit a03d22b

Browse files
committed
Use latest vagrant box versions
1 parent 86a0777 commit a03d22b

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/ansible.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,17 @@ jobs:
187187
url=$( echo "$json" | jq -r ".versions[] | select(.version == \"${box_version}\") | .providers[] | select(.name == \"virtualbox\") | .url" )
188188
wget -nv -O /tmp/vagrant.box $url
189189
190+
- name: Clean VirtualBox cache
191+
run: |
192+
# Related issues:
193+
# https://bbs.archlinux.org/viewtopic.php?id=298056
194+
# https://forums.virtualbox.org/viewtopic.php?t=112438
195+
echo "3" | sudo tee /proc/sys/vm/drop_caches
196+
197+
- name: free before running tests
198+
run: |
199+
free
200+
190201
- name: Run Molecule tests.
191202
run: molecule --debug -v --base-config ./molecule/config/windows.yml test -s ${{ matrix.scenario }} -p ${{ matrix.distro }}
192203
env:

deployments/ansible/molecule/config/windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ driver:
1010
platforms:
1111
- name: "2016"
1212
box: cdaf/WindowsServer
13-
box_version: ${MOLECULE_VAGRANT_BOX_VERSION:-2022.09.01}
13+
box_version: ${MOLECULE_VAGRANT_BOX_VERSION:-2023.03.13}
1414
box_url: ${MOLECULE_VAGRANT_BOX_URL}
1515
cpus: 2
1616
memory: 4096
@@ -30,7 +30,7 @@ platforms:
3030
- "winrm.retry_delay = 10"
3131
- name: "2019"
3232
box: gusztavvargadr/windows-server-2019-standard
33-
box_version: ${MOLECULE_VAGRANT_BOX_VERSION:-1809.0.2312}
33+
box_version: ${MOLECULE_VAGRANT_BOX_VERSION:-1809.0.2407}
3434
box_url: ${MOLECULE_VAGRANT_BOX_URL}
3535
cpus: 2
3636
memory: 4096

0 commit comments

Comments
 (0)