Skip to content

Conversation

@mahdipub
Copy link
Contributor

The new Xcode_offline role will install xcode from an offline copy in /files dire. The brew role also will install brew on macos. Both rely on installing python on mac machine in advance.

Checklist

The new Xcode_offline role will install xcode from an offline copy in /files dire. The brew role also will install brew on macos. Both rely on installing python on mac machine in advance.
@mahdipub
Copy link
Contributor Author

Mac do not let any Ansible activity before you install python manually. So you need to do a workaround before running this PB.
1- download python from https://www.python.org/ftp/python/3.11.4/python-3.11.4-macos11.pkg
2- scp downloaded file to macos (example: scp ~ /Downloads/python-3.11.4-macos11.pkg adminuser@macXXXXXX.rtp.raleigh.ibm.com: ~/)
3- ssh to mac machine and run this to install python:
sudo installer -pkg ~/python-3.11.4-macos11.pkg -target /Applications && /Applications/Python\ 3.11/Install\ Certificates.command && /Applications/Python\ 3.11/Update\ Shell\ Profile.command

4- then we can start using the PB as normal.

So brew can be added as a role and let Ansible install it for us.

@karianna
Copy link
Contributor

@mahdipub Can you fix the linter issues please

@mahdipub
Copy link
Contributor Author

mahdipub commented Feb 27, 2024

@mahdipub Can you fix the linter issues please

Based on comments on slack, I will close this PR and split changes in 2~3 PRs. The one related to Xcode-offline and the other for brew is #3417.

@mahdipub mahdipub closed this Feb 27, 2024
@mahdipub mahdipub changed the title adds roles xcode_offline and brew to Unix_Playbook Adds roles xcode_offline and brew to Unix_Playbook Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants