From dc1a01ce370af0f66fe0f17a44315c2184e0243d Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 30 Sep 2021 12:10:55 +0200 Subject: [PATCH] lxc: fix dependencies --- lxc/tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lxc/tasks/main.yml b/lxc/tasks/main.yml index 74ba69ae..bc5b01eb 100644 --- a/lxc/tasks/main.yml +++ b/lxc/tasks/main.yml @@ -6,19 +6,19 @@ - debootstrap - xz-utils -- name: python-lxc is installed +- name: python-lxc is installed (Debian <= 10) apt: name: python-lxc state: present when: ansible_distribution_major_version is version('10', '<=') -- name: python3-lxc is installed +- name: python3-lxc is installed (Debian >= 10) apt: name: python3-lxc state: present - when: ansible_distribution_major_version is version('10', '>') + when: ansible_distribution_major_version is version('10', '>=') -- name: Install additional packages on Buster +- name: Install additional packages (Debian >= 10) apt: name: - apparmor