From d4901fdfca954d7a8c392fdb20d871e3ef116813 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Wed, 4 Feb 2026 22:12:57 +0100 Subject: Adapt playbook to ansible 2.24+ --- roles/configure/tasks/install-ansible.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roles/configure') diff --git a/roles/configure/tasks/install-ansible.yml b/roles/configure/tasks/install-ansible.yml index c9894a9..80d095b 100644 --- a/roles/configure/tasks/install-ansible.yml +++ b/roles/configure/tasks/install-ansible.yml @@ -5,7 +5,7 @@ - "python3" - "python-packaging" state: present - when: ansible_os_family == "Archlinux" + when: ansible_facts['os_family'] == "Archlinux" - name: "Ensure ansible dependencies are installed on live environment" ansible.builtin.apt: @@ -13,7 +13,7 @@ - "python3" - "python3-packaging" state: "present" - when: ansible_os_family == "Debian" + when: ansible_facts['os_family'] == "Debian" # Workaround ansible.builtin.pip not working on live environment, # after giving up on fixing it, now we install pip manually and use the commands to setup ansible -- cgit v1.2.3