Closed StevenVerheyen closed 4 years ago
In following explanation, xcversion is executed via Ansible through ssh xcversion --version: 2.6.1
xcversion
2.6.1
Ansible:
- hosts: all remote_user: [xxx] vars_prompt: - name: "xcode_version" prompt: "Enter a valid Xcode version (if not known, run `xcversion list`)" private: no tasks: - name: Update xcversion shell: xcversion update environment: PATH: "/usr/local/bin:{{ ansible_env.PATH }}" FASTLANE_USER: [xxx] FASTLANE_PASSWORD: [xxx] - name: Install Xcode {{xcode_version}}. This may take a while. Time for some ☕️ and 🧁 shell: xcversion install {{ xcode_version }} environment: PATH: "/usr/local/bin:{{ ansible_env.PATH }}" FASTLANE_USER: [xxx] FASTLANE_PASSWORD: [xxx]
Expected: Xcode11.2.app installed in /Applications
/Applications
Current behaviour: Xcode.app installed in the home folder
Seems like there is a prompt for a password. Ansible is not giving this prompt. Not an issue for xcversion.
In following explanation,
xcversion
is executed via Ansible through ssh xcversion --version:2.6.1
Ansible:
Expected: Xcode11.2.app installed in
/Applications
Current behaviour: Xcode.app installed in the home folder