From 0f31d1032ca6e1dc33244eaa680f31f3d6ded2e9 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 30 Dec 2024 18:29:56 +0100 Subject: [PATCH] ff --- group_vars/laptop.yml | 3 ++- .../mgrote_install_archived_deb_files_from_url/tasks/main.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/group_vars/laptop.yml b/group_vars/laptop.yml index 1dd7da74..49d248d6 100644 --- a/group_vars/laptop.yml +++ b/group_vars/laptop.yml @@ -9,7 +9,8 @@ laptop_install_deb_url: ### mgrote_install_deb_files_from_url laptop_install_deb_url_archived: - - https://download.mikrotik.com/routeros/winbox/4.0beta14/WinBox_Linux.zip + - url: https://download.mikrotik.com/routeros/winbox/4.0beta14/WinBox_Linux.zip + creates: /usr/local/bin/WinBox ### mgrote_user users: diff --git a/roles/mgrote_install_archived_deb_files_from_url/tasks/main.yml b/roles/mgrote_install_archived_deb_files_from_url/tasks/main.yml index f601dd22..5e81d99e 100644 --- a/roles/mgrote_install_archived_deb_files_from_url/tasks/main.yml +++ b/roles/mgrote_install_archived_deb_files_from_url/tasks/main.yml @@ -1,9 +1,10 @@ --- - name: install archived deb files ansible.builtin.unarchive: - src: "{{ item }}" + src: "{{ item.url }}" dest: /usr/local/bin remote_src: true + creates: "{{ item.creates | default(omit) }}" loop: "{{ laptop_install_deb_url_archived }}" when: laptop_install_deb_url_archived is defined ...