From 67189a492f416666c4192d9b18a10c5f0e7faf03 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Mon, 25 Mar 2024 22:42:37 +0100 Subject: [PATCH] Allow to get kernel cmdline in check mode Without this change, Ansible running in check mode won't be able to detect whether a reboot is needed. --- roles/grubcmdline/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/grubcmdline/tasks/main.yml b/roles/grubcmdline/tasks/main.yml index a8dbe1b..ff5645f 100644 --- a/roles/grubcmdline/tasks/main.yml +++ b/roles/grubcmdline/tasks/main.yml @@ -3,6 +3,7 @@ ansible.builtin.command: cat /proc/cmdline register: result changed_when: false + check_mode: false - name: Determine if we need to update ansible.builtin.set_fact: