Add provision-indri mise task and fix idempotency
- Add mise-tasks/provision-indri script to run ansible playbook - Fix transmission_metrics launchctl load to be idempotent - Update CLAUDE.md to reference mise run provision-indri Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
e264b39cd6
commit
e534e59556
3 changed files with 17 additions and 5 deletions
|
|
@ -13,8 +13,13 @@
|
|||
mode: '0644'
|
||||
notify: reload transmission-metrics
|
||||
|
||||
- name: Ensure transmission-metrics LaunchAgent is loaded
|
||||
ansible.builtin.command: launchctl load ~/Library/LaunchAgents/mcquack.eblume.transmission-metrics.plist
|
||||
register: launchctl_load
|
||||
changed_when: launchctl_load.rc == 0
|
||||
- name: Check if transmission-metrics LaunchAgent is loaded
|
||||
ansible.builtin.command: launchctl list mcquack.eblume.transmission-metrics
|
||||
register: launchctl_check
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
|
||||
- name: Load transmission-metrics LaunchAgent if not loaded
|
||||
ansible.builtin.command: launchctl load ~/Library/LaunchAgents/mcquack.eblume.transmission-metrics.plist
|
||||
when: launchctl_check.rc != 0
|
||||
failed_when: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue