From 700704cdce2751b4a5d42e22f816db1e42f6549f Mon Sep 17 00:00:00 2001 From: Jack Hodgkiss Date: Fri, 30 May 2025 15:43:17 +0100 Subject: [PATCH] fix: do not attempt to install `python3-venv` on non `Ubuntu` systems --- etc/kayobe/ansible/smartmon-tools.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/etc/kayobe/ansible/smartmon-tools.yml b/etc/kayobe/ansible/smartmon-tools.yml index 351ce0325..c6fa35acc 100644 --- a/etc/kayobe/ansible/smartmon-tools.yml +++ b/etc/kayobe/ansible/smartmon-tools.yml @@ -15,10 +15,8 @@ - name: Ensure Python 3, venv, and pip are installed ansible.builtin.package: - name: - - python3 - - python3-venv - - python3-pip + name: > + {{ ['python3', 'python3-pip'] + (['python3-venv'] if ansible_facts['distribution'] == 'Ubuntu' else []) }} state: present become: true