mg
556c5e2d78
Merge branch 'master' into dkms wip wip 2 wip Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#121 Co-Authored-By: mg <mg@noreply.git.mgrote.net> Co-Committed-By: mg <mg@noreply.git.mgrote.net>
36 lines
919 B
YAML
36 lines
919 B
YAML
---
|
|
- 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:
|
|
- "{{ r8152_src_dir }}"
|
|
|
|
- name: copy and extract archive
|
|
become: yes
|
|
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: no #datei liegt also auf dem ansible-controller
|