diff --git a/.ansible-lint b/.ansible-lint index 071c3f4c392c67e9a662816a8f234975d2db78df..98d64bde5c20850a5ece53a01f2b271b448361b5 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -38,6 +38,7 @@ skip_list: - skip_this_tag - git-latest - name[casing] + - package-latest # Any rule that has the 'opt-in' tag will not be loaded unless its 'id' is # mentioned in the enable_list: diff --git a/handlers/main.yml b/handlers/main.yml index 0ddcfd79da37ac9039b5a5c4fa274e049b62468a..234cf4ffd7169f2a797a85e432adb0960dd35c91 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -70,5 +70,5 @@ state: restarted daemon_reload: true -- name: udev-Regel bekannt machen +- name: udev-Regel bekannt machen # noqa no-changed-when ansible.builtin.command: "udevadm control --reload" diff --git a/tasks/configure_swap.yml b/tasks/configure_swap.yml index 3ee20f7d3246817a02ed85595ed378589b5c741a..cc40440754aa2d105da908b9979c0e7d0fbd0d57 100644 --- a/tasks/configure_swap.yml +++ b/tasks/configure_swap.yml @@ -54,6 +54,7 @@ - name: load zram Kernel module ansible.builtin.command: "modprobe zram" when: "not 'zram' in kernel_modules.stdout" + changed_when: false - name: find existing zram devices ansible.builtin.command: "zramctl --noheadings" register: "zram_devices" diff --git a/tasks/migrate_ntpd_to_esxi_timesync.yml b/tasks/migrate_ntpd_to_esxi_timesync.yml index e9ab4d2f5a027418ff77779c366bd4b4a547cbbf..7681e2cb38fdbe5f89152960256a218c80119a65 100644 --- a/tasks/migrate_ntpd_to_esxi_timesync.yml +++ b/tasks/migrate_ntpd_to_esxi_timesync.yml @@ -24,6 +24,7 @@ - vmtools.stat.xusr register: timesync failed_when: ( timesync.rc != 0 ) and ( timesync.rc != 69 ) + changed_when: false - name: enable ESXi timesync if necessary ansible.builtin.command: "/usr/bin/vmware-toolbox-cmd timesync enable" @@ -33,3 +34,4 @@ - vmtools.stat.exists - vmtools.stat.isreg - vmtools.stat.xusr + changed_when: false