xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.59k stars 239 forks source link

Xcode installed on wrong location (with Ansible)? #367

Closed StevenVerheyen closed 4 years ago

StevenVerheyen commented 4 years ago

In following explanation, xcversion is executed via Ansible through ssh xcversion --version: 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

Current behaviour: Xcode.app installed in the home folder

StevenVerheyen commented 4 years ago

Seems like there is a prompt for a password. Ansible is not giving this prompt. Not an issue for xcversion.