mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-20 06:00:06 +08:00
fix(test-guest): refresh runtime setup state
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
This commit is contained in:
@@ -22,9 +22,11 @@
|
||||
update_cache: true
|
||||
when: ansible_facts.distribution == "Ubuntu"
|
||||
|
||||
- name: Install Podman
|
||||
- name: Install Podman dependencies
|
||||
ansible.builtin.package:
|
||||
name: podman
|
||||
name:
|
||||
- podman
|
||||
- socat
|
||||
state: present
|
||||
|
||||
- name: Enable the rootless Podman API socket
|
||||
|
||||
@@ -425,6 +425,11 @@ else
|
||||
echo "==> Reusing cached configuration: ${configurations[*]:-base image}"
|
||||
fi
|
||||
|
||||
# Configuration may change the test user's groups. Close the SSH control
|
||||
# connection established before provisioning so subsequent commands start with
|
||||
# the guest's current credentials.
|
||||
ssh "${ssh_args[@]}" -O exit openshell@127.0.0.1 >/dev/null 2>&1 || true
|
||||
|
||||
for package in "${packages[@]}"; do
|
||||
package_name=$(basename "${package}")
|
||||
if [[ ! ${package_name} =~ ^[A-Za-z0-9._+~-]+$ ]]; then
|
||||
|
||||
Reference in New Issue
Block a user