filter DKMS fur tasks (#174)
filter DKMS fur tasks Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#174 Co-Authored-By: mg <mg@noreply.git.mgrote.net> Co-Committed-By: mg <mg@noreply.git.mgrote.net>
This commit is contained in:
parent
b499ab05d6
commit
ada625676b
1 changed files with 7 additions and 7 deletions
|
@ -1,9 +1,9 @@
|
||||||
---
|
---
|
||||||
# - name: check if module is installed - folder
|
- name: check if module is installed - folder
|
||||||
# become: yes
|
become: yes
|
||||||
# stat:
|
stat:
|
||||||
# path: "/lib/modules/r8152/{{ r8152_filename }}"
|
path: "/lib/modules/r8152"
|
||||||
# register: folder_exists
|
register: folder_exists
|
||||||
|
|
||||||
- name: check if module is installed - lsmod
|
- name: check if module is installed - lsmod
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -13,8 +13,8 @@
|
||||||
|
|
||||||
- name: include install-tasks (task get skipped if the folder or the module exists or r8152_module_needed == false)
|
- name: include install-tasks (task get skipped if the folder or the module exists or r8152_module_needed == false)
|
||||||
include_tasks: doing.yml
|
include_tasks: doing.yml
|
||||||
when: (module_in_lsmod.stdout.find('r8152') == -1) and (r8152_module_needed == true)
|
when: (module_in_lsmod.stdout.find('r8152') == -1) and (r8152_module_needed == true) and (folder_exists.stat.exists == false)
|
||||||
|
|
||||||
- name: include dkms-tasks (task get skipped if the folder or the module exists or r8152_module_needed == false)
|
- name: include dkms-tasks (task get skipped if the folder or the module exists or r8152_module_needed == false)
|
||||||
include_tasks: dkms.yml
|
include_tasks: dkms.yml
|
||||||
when: (module_in_lsmod.stdout.find('r8152') == -1) and (r8152_module_needed == true)
|
when: (module_in_lsmod.stdout.find('r8152') == -1) and (r8152_module_needed == true) and (folder_exists.stat.exists == false)
|
||||||
|
|
Loading…
Reference in a new issue