fix(auto_suspend): update SELinux context handling to avoid ignoring errors

This commit is contained in:
2026-06-08 22:14:41 +02:00
parent 98b0f215aa
commit f8a0a8ab1f
+1 -2
View File
@@ -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