homeserver/friedhof/mgrote_r8152_kernel_module/tasks/doing.yml
Michael Grote 7a24089031 fix linter errors (#584)
Reviewed-on: #584
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-10-25 22:26:17 +02:00

36 lines
868 B
YAML

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