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

fix(ansible): add no_proxy parameter to use latest ansible #453

Merged
merged 2 commits into from
Feb 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ jobs:
# brew install --cask virtualbox-extension-pack
fi
# renovate: datasource=pypi depName=ansible
ANSIBLE_VERSION="5.10.0"
ANSIBLE_VERSION="7.2.0"
pip3 install ansible=="${ANSIBLE_VERSION}"
if [[ "${BUILD}" =~ windows ]]; then
# renovate: datasource=pypi depName=pywinrm
Expand Down
22 changes: 16 additions & 6 deletions my_windows.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,23 @@
"type": "powershell"
},
{
"command": "ansible-playbook --connection=winrm --extra-vars='packer_build_name={{ user `name` }} ansible_password='{{ user `winrm_password` }}' ansible_winrm_server_cert_validation=ignore ansible_winrm_connection_timeout=2000' -i 127.0.0.1, ansible/site.yml",
"environment_vars": [
"ANSIBLE_CONFIG=ansible/ansible.cfg",
"ANSIBLE_REMOTE_PORT={{ build `Port` }}",
"ANSIBLE_REMOTE_USER={{ user `winrm_username` }}"
"type": "ansible",
"extra_arguments": [
"-e",
"packer_build_name={{ user `name` }}",
"-e",
"ansible_password='{{ user `winrm_password` }}'",
"-e",
"ansible_winrm_server_cert_validation=ignore",
"-e",
"ansible_winrm_connection_timeout=2000"
],
"type": "shell-local"
"user": "{{ user `winrm_username` }}",
"ansible_env_vars": [
"ANSIBLE_CONFIG=ansible/ansible.cfg"
],
"use_proxy": false,
"playbook_file": "ansible/site.yml"
},
{
"inline": [
Expand Down
22 changes: 16 additions & 6 deletions windows.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,23 @@
"type": "powershell"
},
{
"command": "ansible-playbook --connection=winrm --extra-vars='packer_build_name={{ user `name` }} ansible_password='{{ user `winrm_password` }}' ansible_winrm_server_cert_validation=ignore ansible_winrm_connection_timeout=2000' -i 127.0.0.1, ansible/win-simple.yml",
"environment_vars": [
"ANSIBLE_CONFIG=ansible/ansible.cfg",
"ANSIBLE_REMOTE_PORT={{ build `Port` }}",
"ANSIBLE_REMOTE_USER={{ user `winrm_username` }}"
"type": "ansible",
"extra_arguments": [
"-e",
"packer_build_name={{ user `name` }}",
"-e",
"ansible_password='{{ user `winrm_password` }}'",
"-e",
"ansible_winrm_server_cert_validation=ignore",
"-e",
"ansible_winrm_connection_timeout=2000"
],
"type": "shell-local"
"user": "{{ user `winrm_username` }}",
"ansible_env_vars": [
"ANSIBLE_CONFIG=ansible/ansible.cfg"
],
"use_proxy": false,
"playbook_file": "ansible/win-simple.yml"
},
{
"inline": [
Expand Down