From 3698b191d5abc487ca7c80d21f9a8793f431e79d Mon Sep 17 00:00:00 2001 From: Bas Meijer Date: Fri, 13 Dec 2024 15:05:41 +0100 Subject: [PATCH] Add screen, and a way to specify RPMs --- roles/semaphore/defaults/main.yml | 11 +++++++++++ roles/semaphore/tasks/present.yml | 15 ++++++--------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/roles/semaphore/defaults/main.yml b/roles/semaphore/defaults/main.yml index 836d813..09d43a6 100644 --- a/roles/semaphore/defaults/main.yml +++ b/roles/semaphore/defaults/main.yml @@ -1,6 +1,17 @@ --- desired_state: present semaphore_download_package: true +semaphore_dependencies: + - ansible-core + - python3.12-devel + - python3.12-pip + - python3.12-pip-wheel + - psmisc + - rsync + - screen + - tar + - zip + verify_state: true # Easier debugging debug: false diff --git a/roles/semaphore/tasks/present.yml b/roles/semaphore/tasks/present.yml index 9c164d7..4154e9f 100644 --- a/roles/semaphore/tasks/present.yml +++ b/roles/semaphore/tasks/present.yml @@ -1,15 +1,12 @@ - name: Install packages ansible.builtin.package: - name: - - ansible-core - - psmisc - - python3.12-devel - - python3.12-pip - - python3.12-pip-wheel - - rsync - - tar - - zip + name: "{{ item }}" state: present + register: package_install + until: package_install is success + retries: 10 + delay: 2 + with_items: "{{ semaphore_dependencies }}" - name: Relax SELinux ansible.posix.selinux: