fix(auto_suspend): update SELinux context handling to avoid ignoring errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user