homeserver/roles/mgrote.r8152_kernel_module/tasks/main.yml
mg 44022ed0a8 bdfr + bugfixes (#115)
lock für script

log vars

doku

changed never

pool test

bdfr log

bdfr log

reboot cifs

mount

vars

aufräumen

download script

tasks

playbook

group vars

doku

eiegenes dataset archiv

keepass bfdr invalid

keepass: bfdr client id + client secret

upvoted saved and liked

Leerzeichen

sources bug

inventory

vars

vm test cv5pve

typo

Linux MInt fur Apt-Manage Sources

bdfr share

KeePassPW angepasst bdfr

playbook

bug cifs

bdfr

nutzer fileserver

Keepass: user bdfr

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#115
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
2021-06-14 08:34:02 +02:00

16 lines
643 B
YAML

---
- name: check if module is installed - folder
become: yes
stat:
path: "/lib/modules/r8152/{{ r8152_filename }}"
register: folder_exists
- name: check if module is installed - lsmod
become: yes
ansible.builtin.shell: lsmod
register: module_in_lsmod
changed_when: False # sorgt dafür das der Task nie als "changed" angezeigt wird
- name: include tasks (task get skipped if the folder or the module exists or r8152_module_needed == false)
include_tasks: doing.yml
when: ((folder_exists.stat.exists == False) or (module_in_lsmod.stdout.find('r8152') == -1)) and (r8152_module_needed == true)