Add GitHub Copilot installation support to macOS development station

This commit is contained in:
2026-07-06 17:04:24 +02:00
parent 3063561832
commit 95efe242ac
3 changed files with 199 additions and 0 deletions
@@ -270,6 +270,35 @@
- item.rc is defined
- item.rc != 0
- name: Copy Copilot installer script
become: true
ansible.builtin.copy:
src: install-copilot.sh
dest: "{{ macos_dev_station_service_home }}/.cache/install-copilot.sh"
owner: "{{ macos_dev_station_service_user }}"
group: "{{ macos_dev_station_service_group }}"
mode: "0755"
when:
- macos_dev_station_service_user_enabled | bool
- macos_dev_station_copilot_enabled | bool
- name: Install GitHub Copilot extensions via compatible VSIX
become: true
become_user: "{{ macos_dev_station_service_user }}"
ansible.builtin.command: "{{ macos_dev_station_service_home }}/.cache/install-copilot.sh"
register: __copilot_install_result
changed_when: __copilot_install_result.rc == 0
failed_when: >-
(macos_dev_station_copilot_fail_on_error | bool)
and (__copilot_install_result.rc != 0)
environment:
HOME: "{{ macos_dev_station_service_home }}"
USER: "{{ macos_dev_station_service_user }}"
PATH: "{{ macos_dev_station_path }}"
when:
- macos_dev_station_service_user_enabled | bool
- macos_dev_station_copilot_enabled | bool
- name: Ensure devstation SSH directory exists when SSH access is enabled
become: true
ansible.builtin.file: