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 055dcb08..f601dd22 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,8 +1,9 @@ --- -- name: install deb files - become: true - ansible.builtin.apt: - deb: "{{ item }}" - loop: "{{ laptop_install_deb_url }}" - when: laptop_install_deb_url is defined +- name: install archived deb files + ansible.builtin.unarchive: + src: "{{ item }}" + dest: /usr/local/bin + remote_src: true + loop: "{{ laptop_install_deb_url_archived }}" + when: laptop_install_deb_url_archived is defined ... diff --git a/roles/mgrote_install_deb_files_from_url/tasks/main.yml b/roles/mgrote_install_deb_files_from_url/tasks/main.yml index f601dd22..055dcb08 100644 --- a/roles/mgrote_install_deb_files_from_url/tasks/main.yml +++ b/roles/mgrote_install_deb_files_from_url/tasks/main.yml @@ -1,9 +1,8 @@ --- -- name: install archived deb files - ansible.builtin.unarchive: - src: "{{ item }}" - dest: /usr/local/bin - remote_src: true - loop: "{{ laptop_install_deb_url_archived }}" - when: laptop_install_deb_url_archived is defined +- name: install deb files + become: true + ansible.builtin.apt: + deb: "{{ item }}" + loop: "{{ laptop_install_deb_url }}" + when: laptop_install_deb_url is defined ...