Just trying to get started installing homebrew on macOS Sierra 10.12.1 with this play: - name: Install brewhosts: allosxhostsvars:homebrewinstalledpackages:- ant- cmake- jqroles:- geerlingguy.homebrewtags:- debugThis fails with Traceback (most recent call last):File '/var/folders/jm/3n8ksbs4fz49dlzmlchtgw0000gn/T/ansibleHPa4di/ansiblemodulegit.py', line 1040, in mainFile '/var/folders/jm/3n8ksbs4fz49dlzmlchtgw0000gn/T/ansibleHPa4di/ansiblemodulegit.py', line 923, in mainif depth is not None and gitversionused. I wonder—since the failed task shows something about the Git version comparison before failing—if Ansible can't see a valid/usable Git binary. When you run the playbook, are you running it on localhost, or on a machine controlled via SSH? If via SSH, can you log into that machine and run which git as well?If Git's not installed, you should install it/configure it so it's in the $PATH prior to this role.It could be something else. But that seems the most logical thing to check next.Also, can you check the Python version on the controlled machine? I have updated my previous comment to list the required information more clearly.The target system is a really fresh macOS Sierra installation where no changes were made (apart from ansible user setup) and no software was installed apart from Xcode.
Hi, Ive just installed Sierra in VMWare from a distro and everything seems to be. I downloaded darwin.iso 8.5.3 posted by MSoK to double check. Install VMware Workstation or VMware Workstation Player (free for. All Downloads.
Therefore, I had expected git and python to be the versions that came with the system. However, getting the respective versions of git and python on vm-osx-1012 shows the cause of the problem: ansible-control-host: username$ ssh vm-osx-1012.vm-osx-1012: ansible$ which python/usr/bin/pythonvm-osx-1012: ansible$ python -versionPython 2.7.10vm-osx-1012: ansible$ which git/usr/bin/gitvm-osx-1012: ansible$ git -versionAgreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.vm-osx-1012: ansible$ sudo git -versionYou have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.Hit the Enter key to view the license agreements at '/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf'Apple Inc.Xcode and Apple SDKs Agreement(. Long text with ASCII codes (?) interspersed, e.g.
)(hit q)By typing 'agree' you are agreeing to the terms of the software license agreements.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |