fix(macOS): correctly sequence launchctl unload and load by using listen rather than notify in handlers
This commit is contained in:
parent
3f1ece8601
commit
73e33e3083
@ -12,19 +12,18 @@
|
||||
when: ansible_system == 'Linux'
|
||||
listen: Restart acp codex
|
||||
|
||||
- name: Restart acp codex on macOS
|
||||
- name: Unload acp codex on macOS
|
||||
ansible.builtin.command: "launchctl unload {{ ansible_env.HOME }}/Library/LaunchAgents/plus.svc.xworkspace.acp.codex.plist"
|
||||
register: launchctl_unload
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
notify: Start acp codex on macOS
|
||||
when: ansible_system == 'Darwin'
|
||||
listen: Restart acp codex
|
||||
|
||||
- name: Start acp codex on macOS
|
||||
- name: Load acp codex on macOS
|
||||
ansible.builtin.command: "launchctl load -w {{ ansible_env.HOME }}/Library/LaunchAgents/plus.svc.xworkspace.acp.codex.plist"
|
||||
changed_when: false
|
||||
when: ansible_system == 'Darwin'
|
||||
listen: Restart acp codex
|
||||
|
||||
- name: Restart acp codex on Windows
|
||||
ansible.builtin.debug:
|
||||
|
||||
@ -12,19 +12,18 @@
|
||||
when: ansible_system == 'Linux'
|
||||
listen: Restart acp gemini
|
||||
|
||||
- name: Restart acp gemini on macOS
|
||||
- name: Unload acp gemini on macOS
|
||||
ansible.builtin.command: "launchctl unload {{ ansible_env.HOME }}/Library/LaunchAgents/plus.svc.xworkspace.acp.gemini.plist"
|
||||
register: launchctl_unload
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
notify: Start acp gemini on macOS
|
||||
when: ansible_system == 'Darwin'
|
||||
listen: Restart acp gemini
|
||||
|
||||
- name: Start acp gemini on macOS
|
||||
- name: Load acp gemini on macOS
|
||||
ansible.builtin.command: "launchctl load -w {{ ansible_env.HOME }}/Library/LaunchAgents/plus.svc.xworkspace.acp.gemini.plist"
|
||||
changed_when: false
|
||||
when: ansible_system == 'Darwin'
|
||||
listen: Restart acp gemini
|
||||
|
||||
- name: Restart acp gemini on Windows
|
||||
ansible.builtin.debug:
|
||||
|
||||
@ -12,19 +12,18 @@
|
||||
when: ansible_system == 'Linux'
|
||||
listen: Restart acp hermes
|
||||
|
||||
- name: Restart acp hermes on macOS
|
||||
- name: Unload acp hermes on macOS
|
||||
ansible.builtin.command: "launchctl unload {{ ansible_env.HOME }}/Library/LaunchAgents/plus.svc.xworkspace.acp.hermes.plist"
|
||||
register: launchctl_unload
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
notify: Start acp hermes on macOS
|
||||
when: ansible_system == 'Darwin'
|
||||
listen: Restart acp hermes
|
||||
|
||||
- name: Start acp hermes on macOS
|
||||
- name: Load acp hermes on macOS
|
||||
ansible.builtin.command: "launchctl load -w {{ ansible_env.HOME }}/Library/LaunchAgents/plus.svc.xworkspace.acp.hermes.plist"
|
||||
changed_when: false
|
||||
when: ansible_system == 'Darwin'
|
||||
listen: Restart acp hermes
|
||||
|
||||
- name: Restart acp hermes on Windows
|
||||
ansible.builtin.debug:
|
||||
|
||||
@ -12,19 +12,18 @@
|
||||
when: ansible_system == 'Linux'
|
||||
listen: Restart acp opencode
|
||||
|
||||
- name: Restart acp opencode on macOS
|
||||
- name: Unload acp opencode on macOS
|
||||
ansible.builtin.command: "launchctl unload {{ ansible_env.HOME }}/Library/LaunchAgents/plus.svc.xworkspace.acp.opencode.plist"
|
||||
register: launchctl_unload
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
notify: Start acp opencode on macOS
|
||||
when: ansible_system == 'Darwin'
|
||||
listen: Restart acp opencode
|
||||
|
||||
- name: Start acp opencode on macOS
|
||||
- name: Load acp opencode on macOS
|
||||
ansible.builtin.command: "launchctl load -w {{ ansible_env.HOME }}/Library/LaunchAgents/plus.svc.xworkspace.acp.opencode.plist"
|
||||
changed_when: false
|
||||
when: ansible_system == 'Darwin'
|
||||
listen: Restart acp opencode
|
||||
|
||||
- name: Restart acp opencode on Windows
|
||||
ansible.builtin.debug:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user