Commit c17484da authored by Bernhard Geier's avatar Bernhard Geier

batman_install: Repariere ansible --check

parent 660755d8
......@@ -4,6 +4,7 @@
register: installed_batman_version
when: batman.version is defined and batman.version
changed_when: False
check_mode: no
# batman.version != installierte Version: evtl vorhandenes DKMS-batman-adv deinstallieren
- include: remove-src.yml
......@@ -17,6 +18,7 @@
when: batman.version is defined and batman.version != "kernel" and
(installed_batman_version.stdout is defined and installed_batman_version.stdout != batman.version)
changed_when: False
check_mode: no
# batman-adv-Version im Kernel passt -> nur batctl installieren
- include: install-deb.yml
......
......@@ -6,6 +6,7 @@
path: /usr/sbin/dkms
register: stat_dkms
changed_when: False
check_mode: no
# Evtl. vorhandenes batman-adv-DKMS-Modul deinstallieren
- name: Prüfe ob batman-adv als DKMS-Modul installiert wurde
......@@ -13,6 +14,7 @@
register: dkms_version_batman
when: stat_dkms.stat.exists
changed_when: False
check_mode: no
- name: DKMS-Modul batman-adv entfernen
shell: "dkms remove batman-adv/{{ dkms_version_batman.stdout }} -k {{ ansible_kernel }}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment