mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Ubuntu] Update ansible-base to ansible-core (#3711)
Update ansible-base 2.10 to ansible-core 2.11 for Ubuntu images
This commit is contained in:
committed by
GitHub
parent
e139c6d581
commit
8aac9e60c0
@@ -1,5 +1,5 @@
|
|||||||
function Get-AnsibleVersion {
|
function Get-AnsibleVersion {
|
||||||
$ansibleVersion = ansible --version | Select-Object -First 1 | Take-OutputPart -Part 1
|
$ansibleVersion = (ansible --version)[0] -replace "[^\d.]"
|
||||||
return "Ansible $ansibleVersion"
|
return "Ansible $ansibleVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,9 +19,10 @@ for package in $pipx_packages; do
|
|||||||
echo "Install $package into default python"
|
echo "Install $package into default python"
|
||||||
pipx install $package
|
pipx install $package
|
||||||
|
|
||||||
# Install ansible into an existing ansible-base Virtual Environment
|
# https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html
|
||||||
if [[ $package == "ansible-base" ]]; then
|
# Install ansible into an existing ansible-core Virtual Environment
|
||||||
pipx inject ansible-base ansible
|
if [[ $package == "ansible-core" ]]; then
|
||||||
|
pipx inject $package ansible
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -224,7 +224,7 @@
|
|||||||
"cmd": "yamllint"
|
"cmd": "yamllint"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"package": "ansible-base",
|
"package": "ansible-core",
|
||||||
"cmd": "ansible"
|
"cmd": "ansible"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -224,7 +224,7 @@
|
|||||||
"cmd": "yamllint"
|
"cmd": "yamllint"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"package": "ansible-base",
|
"package": "ansible-core",
|
||||||
"cmd": "ansible"
|
"cmd": "ansible"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user