From d09f67a9c4f2145bb2f7dfcd93eb0bbdcffd14bf Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Wed, 26 Nov 2025 19:14:40 +0100 Subject: Replace the package_cache role with pre-task since it wasn't reused It was expected to have the package_cache role reused or added as dependency for other roles, but it turned out it's not used that way, therefore removing it to a more simpler approach --- bootstrap.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bootstrap.yml') diff --git a/bootstrap.yml b/bootstrap.yml index a7f55e13..056ac99d 100644 --- a/bootstrap.yml +++ b/bootstrap.yml @@ -7,9 +7,16 @@ - ubuntu.local - rpi5.local roles: - - role: "package_cache" - role: "hostname" - role: "network" - role: "user" - role: "ssh" - role: "password_policy" + pre_tasks: + - name: "Update package cache" + become: true + ansible.builtin.package: + update_cache: true + async: 60 + poll: 5 + failed_when: false -- cgit v1.2.3