Ensure tar is installed on LXC host

Tar is required for LXC to create base container using lxc-create. When
it's absent lxc-create exits with code 1 without any output on this
task [1]

[1] ef721dbf13/tasks/lxc_cache_create.yml (L71)

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/868274
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/868563
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/869634
Change-Id: Ic54d160c7329aebb7769c407d3af7b0f66145bcc
(cherry picked from commit 30b97f57c9)
This commit is contained in:
Dmitriy Rabotyagov 2022-12-12 15:57:37 +01:00 committed by Dmitriy Rabotyagov
parent a9b363a5c5
commit 2f769d028c
2 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,7 @@ _lxc_hosts_distro_packages:
- python3-lxc
- python3-dev
- systemd-container
- tar
- xz-utils
# Package to remove from the host

View File

@ -35,6 +35,7 @@ _lxc_hosts_distro_packages:
- procps
- python3-lxc
- systemd-container
- tar
- unzip
- xz