diff --git a/host_vars/irantu.mgrote.net.yml b/host_vars/irantu.mgrote.net.yml index ad26bd41..a82c08a4 100644 --- a/host_vars/irantu.mgrote.net.yml +++ b/host_vars/irantu.mgrote.net.yml @@ -1,11 +1,13 @@ --- # Diese Datei enthällt alles für den Laptop, es werden auch alle Variablen aus den Group-Vars extra eingetragen. -### mgrote_laptop +### mgrote_install_archived_deb_files_from_url laptop_install_deb_url: - https://github.com/pulsar-edit/pulsar/releases/download/v1.123.0/Linux.pulsar_1.123.0_amd64.deb - https://download.xnview.com/XnViewMP-linux-x64.deb - https://github.com/torakiki/pdfsam/releases/download/v5.2.9/pdfsam_5.2.9-1_amd64.deb + +### mgrote_install_deb_files_from_url laptop_install_deb_url_archived: - https://download.mikrotik.com/routeros/winbox/4.0beta14/WinBox_Linux.zip diff --git a/playbooks/0_laptop.yml b/playbooks/0_laptop.yml index 308c229d..689bee78 100644 --- a/playbooks/0_laptop.yml +++ b/playbooks/0_laptop.yml @@ -40,3 +40,9 @@ - role: mgrote_docker_housekeeping tags: "housekeeping" become: true + - role: mgrote_install_archived_deb_files_from_url + tags: "deb" + become: true + - role: mgrote_install_deb_files_from_url + tags: "deb" + become: true diff --git a/roles/mgrote_laptop/tasks/main.yml b/roles/mgrote_install_archived_deb_files_from_url/tasks/main.yml similarity index 100% rename from roles/mgrote_laptop/tasks/main.yml rename to roles/mgrote_install_archived_deb_files_from_url/tasks/main.yml diff --git a/roles/mgrote_install_deb_files_from_url/tasks/main.yml b/roles/mgrote_install_deb_files_from_url/tasks/main.yml new file mode 100644 index 00000000..699f1706 --- /dev/null +++ b/roles/mgrote_install_deb_files_from_url/tasks/main.yml @@ -0,0 +1,16 @@ +--- +- 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: yes + loop: "{{ laptop_install_deb_url_archived }}" + when: laptop_install_deb_url_archived is defined +...