Fix LaunchDaemon check to use become: true
LaunchDaemons run in the system domain and require sudo to query. Without become: true, the check always fails and tries to reload. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
57bf8512dc
commit
16bfe06b7b
1 changed files with 1 additions and 0 deletions
|
|
@ -116,6 +116,7 @@
|
|||
|
||||
- name: Check if macos-power-metrics LaunchDaemon is loaded
|
||||
ansible.builtin.command: launchctl list mcquack.eblume.macos-power-metrics
|
||||
become: true
|
||||
register: alloy_power_metrics_launchctl_check
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue