From 30b97f57c9f739e3e565ad55c79c967946a67082 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Mon, 12 Dec 2022 15:57:37 +0100 Subject: [PATCH] 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] https://opendev.org/openstack/openstack-ansible-lxc_hosts/src/commit/ef721dbf13db8f3578b45791ac67c4815bd8c59a/tasks/lxc_cache_create.yml#L71 Change-Id: Ic54d160c7329aebb7769c407d3af7b0f66145bcc --- vars/debian-host.yml | 1 + vars/redhat-host.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/vars/debian-host.yml b/vars/debian-host.yml index 9ead3cf4..28093a3e 100644 --- a/vars/debian-host.yml +++ b/vars/debian-host.yml @@ -38,6 +38,7 @@ _lxc_hosts_distro_packages: - python3-lxc - python3-dev - systemd-container + - tar - xz-utils # Package to remove from the host diff --git a/vars/redhat-host.yml b/vars/redhat-host.yml index 865532f2..16e70303 100644 --- a/vars/redhat-host.yml +++ b/vars/redhat-host.yml @@ -34,6 +34,7 @@ _lxc_hosts_distro_packages: - procps - python3-lxc - systemd-container + - tar - unzip - xz