From f8a0a8ab1f496521dad977841f9e7ac285fda303 Mon Sep 17 00:00:00 2001 From: Alexandre Pires Date: Mon, 8 Jun 2026 22:14:41 +0200 Subject: [PATCH] fix(auto_suspend): update SELinux context handling to avoid ignoring errors --- ansible/roles/auto_suspend/tasks/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ansible/roles/auto_suspend/tasks/main.yml b/ansible/roles/auto_suspend/tasks/main.yml index 3bf53d9..825c8bb 100644 --- a/ansible/roles/auto_suspend/tasks/main.yml +++ b/ansible/roles/auto_suspend/tasks/main.yml @@ -81,14 +81,13 @@ path: /usr/local/bin/auto_suspend.py setype: bin_t state: present - ignore_errors: true + failed_when: false - name: Restore SELinux context on script become: true ansible.builtin.command: restorecon -v /usr/local/bin/auto_suspend.py changed_when: true failed_when: false - ignore_errors: true - name: Create systemd service for auto-suspend become: true