macstadium.xcode

Ansible Role: Xcode

GPL-3.0 licensed Build Status

This role helps install Xcode on MacOS using the provided settings.

Requirements

  • This role works with Xcode versions 8 and newer.
  • You need to have a pre-downloaded Xcode xip file on the machine where you want to install it. You can get Xcode versions from the Apple Downloads Page.
  • The user running this role must be logged into the MacOS machine since a UI session is necessary.
  • Spotlight must be enabled because it helps check if Xcode is already installed.

Role Variables

Here are the role variables and their default values. You can see all default values in defaults/main.yml:

  • xcode_xip_location: The location of the Xcode xip file on the target computer.

  • xcode_major_version: The main version number of Xcode to be installed. Different versions have different ways of installing additional packages, so we need to know the version.

  • xcode_build: The path to the xcodebuild tool, which is used during installation.

  • xcode_packages_location: The directory for all extra Xcode packages that will be installed.

  • xcode_xip_extraction_timeout: The time limit in seconds for extracting the installation archive.

Dependencies

There are no dependencies for this role.

Example Playbook

Here’s an example of how to use the role:

- hosts: localhost
  vars:
    xcode_xip_location: '/Users/user/Downloads/Xcode_10.1.xip'
    xcode_major_version: 10
  roles:
    - xcode

License

This role is licensed under GPL-3.0.

Author Information

This role was created in 2019 by MacStadium, Inc.

Maintainer(s)

Installa
ansible-galaxy install macstadium.xcode
Licenza
gpl-3.0
Download
31.6k
Proprietario
MacStadium provides dedicated Mac servers and hosted Mac private clouds to thousands of developers and organizations worldwide.