From cbc75c0d67040980e566c3467a7bcefa16099e5c Mon Sep 17 00:00:00 2001 From: Roberto Alfieri Date: Sun, 8 Oct 2023 15:23:49 +0200 Subject: [PATCH] Added missing `become:true` in `edpm_bootstrap` handlers tasks Signed-off-by: Roberto Alfieri --- roles/edpm_bootstrap/handlers/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/edpm_bootstrap/handlers/main.yml b/roles/edpm_bootstrap/handlers/main.yml index 553e3994e..45fcd1d38 100644 --- a/roles/edpm_bootstrap/handlers/main.yml +++ b/roles/edpm_bootstrap/handlers/main.yml @@ -1,6 +1,7 @@ --- - name: Setup linux swap area on file if needed + become: true ansible.builtin.command: mkswap "{{ edpm_bootstrap_swap_path }}" register: _mkswap_command changed_when: _mkswap_command.rc == 0 @@ -8,6 +9,7 @@ listen: "create and activate swap" - name: Activate swap + become: true ansible.builtin.command: swapon "{{ edpm_bootstrap_swap_path }}" register: _swapon_command changed_when: _swapon_command.rc == 0