Skip to content
This repository was archived by the owner on Nov 22, 2025. It is now read-only.

Commit c48f8fc

Browse files
committed
fix(build): fix vagrant issue related to WinRM
1 parent 201a258 commit c48f8fc

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ on:
3737
ANSIBLE_DEBUG:
3838
type: choice
3939
description: ANSIBLE_DEBUG (true, false)
40-
default: "false"
4140
options:
4241
- "false"
4342
- "true"
@@ -54,7 +53,6 @@ on:
5453
build_upload:
5554
type: choice
5655
description: Upload release to Vagrant Cloud
57-
default: "false"
5856
options:
5957
- "false"
6058
- "true"
@@ -196,26 +194,34 @@ jobs:
196194
- name: Install packages
197195
run: |
198196
set -euxo pipefail
197+
199198
# Remove unused packages to save some disk space
200199
rm -rf /Users/runner/Library/Developer /Users/runner/Library/Android /Users/runner/hostedtoolcache /Users/runner/.dotnet
201-
brew update
202-
brew install bash coreutils gnu-sed jq packer hudochenkov/sshpass/sshpass vagrant
200+
brew install ansible bash coreutils gnu-sed jq packer hudochenkov/sshpass/sshpass hashicorp/tap/hashicorp-vagrant
201+
203202
if [[ "${PACKER_VAGRANT_PROVIDER}" = "libvirt" ]]; then
204203
brew install qemu xorriso
204+
qemu-system-x86_64 --version
205205
fi
206+
206207
if [[ "${PACKER_VAGRANT_PROVIDER}" = "virtualbox" ]]; then
207208
brew install virtualbox
209+
vboxmanage --version
208210
fi
209-
# renovate: datasource=pypi depName=ansible
210-
ANSIBLE_VERSION="8.2.0"
211-
pip3 install ansible=="${ANSIBLE_VERSION}"
211+
212+
vagrant --version
213+
packer --version
214+
ansible --version
215+
212216
if [[ "${BUILD}" =~ windows ]]; then
213217
# renovate: datasource=pypi depName=pywinrm
214218
PYWINRM_VERSION="0.4.3"
215219
pip3 install pywinrm=="${PYWINRM_VERSION}"
216-
ansible-galaxy collection install -v -r ansible/requirements.yml
220+
ansible-galaxy collection install -r --force ansible/requirements.yml
217221
fi
222+
218223
echo "/usr/local/bin:/usr/local/opt/gnu-sed/libexec/gnubin:/usr/local/opt/coreutils/libexec/gnubin" >> "${GITHUB_PATH}"
224+
219225
# Used by mxschmitt/action-tmate
220226
touch continue
221227
@@ -235,7 +241,7 @@ jobs:
235241
with:
236242
name: ${{ matrix.stage }}
237243
path: ${{ env.LOGDIR }}/*
238-
retention-days: 1
244+
retention-days: 3
239245

240246
- name: Check the created box image
241247
run: |

vagrant_init_destroy_boxes.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ main() {
124124
fi
125125
test -d "${LOGDIR}" || mkdir -p "${LOGDIR}"
126126

127+
set -x
128+
127129
for VAGRANT_BOX_FILE in ${BOXES_LIST}; do
128130
VAGRANT_BOX_NAME=$(basename "${VAGRANT_BOX_FILE%.*}")
129131
export VAGRANT_BOX_NAME

0 commit comments

Comments
 (0)