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
|
path: /usr/local/bin/auto_suspend.py
|
||||||
setype: bin_t
|
setype: bin_t
|
||||||
state: present
|
state: present
|
||||||
ignore_errors: true
|
failed_when: false
|
||||||
|
|
||||||
- name: Restore SELinux context on script
|
- name: Restore SELinux context on script
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.command: restorecon -v /usr/local/bin/auto_suspend.py
|
ansible.builtin.command: restorecon -v /usr/local/bin/auto_suspend.py
|
||||||
changed_when: true
|
changed_when: true
|
||||||
failed_when: false
|
failed_when: false
|
||||||
ignore_errors: true
|
|
||||||
|
|
||||||
- name: Create systemd service for auto-suspend
|
- name: Create systemd service for auto-suspend
|
||||||
become: true
|
become: true
|
||||||
|
|||||||
Reference in New Issue
Block a user