2021-05-10 14:26:39 +02:00
|
|
|
---
|
|
|
|
- name: install needed packages
|
|
|
|
become: yes
|
|
|
|
ansible.builtin.package:
|
|
|
|
name: "{{ r8152_packages }}"
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: add reboot(for safekeeping)
|
|
|
|
become: yes
|
|
|
|
ansible.builtin.shell: shutdown -r "{{ r8152_safekeeping_reboot_delay }}"
|
|
|
|
|
|
|
|
- name: update apt cache
|
|
|
|
become: yes
|
|
|
|
ansible.builtin.apt:
|
|
|
|
update_cache: yes
|
|
|
|
|
|
|
|
- name: updated installed packages
|
|
|
|
become: yes
|
|
|
|
ansible.builtin.package:
|
|
|
|
upgrade: dist
|
|
|
|
|
|
|
|
- name: create dirs
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
loop:
|
2021-06-20 10:56:18 +02:00
|
|
|
- "{{ r8152_src_dir }}"
|
2021-05-10 14:26:39 +02:00
|
|
|
|
2021-06-20 10:56:18 +02:00
|
|
|
- name: copy and extract archive
|
2021-05-10 14:26:39 +02:00
|
|
|
become: yes
|
|
|
|
ansible.builtin.unarchive:
|
2021-06-20 10:56:18 +02:00
|
|
|
src: "{{ r8152_filename }}"
|
|
|
|
dest: "{{ r8152_src_dir }}"
|
2021-05-10 14:26:39 +02:00
|
|
|
mode: a+x
|
|
|
|
extra_opts: [--strip-components=1] # entfernt die erste Ebene des Archives
|
2021-06-20 10:56:18 +02:00
|
|
|
remote_src: no #datei liegt also auf dem ansible-controller
|