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 ...