From 83fa17134125893e94f6e88a7fd382e6fb535e7b Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Fri, 19 Jun 2026 19:15:38 -0400 Subject: [PATCH] added task for grabbng software binary as software installation --- roles/init-server/tasks/core@install-pkgs.yml | 15 +++++++++++++++ .../init-server/tasks/userspace@install-pkgs.yml | 16 ++++++++++++++-- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/roles/init-server/tasks/core@install-pkgs.yml b/roles/init-server/tasks/core@install-pkgs.yml index 21a8582..aa5e0ec 100644 --- a/roles/init-server/tasks/core@install-pkgs.yml +++ b/roles/init-server/tasks/core@install-pkgs.yml @@ -216,3 +216,18 @@ msg: Rebooting machine tags: - get_git_pkgs + - name: Installing software as pre-compiled binary + block: + - name: Grabbing software binary + become: true + ansible.builtin.get_url: + url: "{{ item.src }}" + dest: "/usr/bin/{{ item.name }}" + owner: root + group: root + mode: "744" + force: true + backup: true + notify: "{{ item.handler }}" + loop: "{{ (pkgs.binaries.core | default([])) }}" + diff --git a/roles/init-server/tasks/userspace@install-pkgs.yml b/roles/init-server/tasks/userspace@install-pkgs.yml index a823354..295899b 100644 --- a/roles/init-server/tasks/userspace@install-pkgs.yml +++ b/roles/init-server/tasks/userspace@install-pkgs.yml @@ -216,5 +216,17 @@ msg: Rebooting machine tags: - get_git_pkgs -# @TODO add a reboot either here or in any of the handlers potentially notified from here in -# order to update environment (unless found better solution) \ No newline at end of file + - name: Installing software as pre-compiled binary + block: + - name: Grabbing software binary + become: true + ansible.builtin.get_url: + url: "{{ item.src }}" + dest: "/usr/bin/{{ item.name }}" + owner: root + group: root + mode: "744" + force: true + backup: true + notify: "{{ item.handler }}" + loop: "{{ (pkgs.binaries.userspace | default([])) }}" \ No newline at end of file