mac-dev-playbook | Mac setup and configuration via Ansible | Automation library
kandi X-RAY | mac-dev-playbook Summary
kandi X-RAY | mac-dev-playbook Summary
Mac setup and configuration via Ansible.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mac-dev-playbook
mac-dev-playbook Key Features
mac-dev-playbook Examples and Code Snippets
Community Discussions
Trending Discussions on mac-dev-playbook
QUESTION
I'm trying to find the architecture of the machine by using Ansible Facts.
We can gather information about the machine by running ansible -m setup
command. As described in the documentation: Discovering variables: facts and magic variables — Ansible Documentation.
But it seems that the ansible_architecture
and ansible_machine
are the same values. I'm not sure the difference between them. The example on the above documentation shows the following two values which have the same values:
ANSWER
Answered 2021-Mar-27 at 07:05According to the code (https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/facts/system/platform.py) it's mostly always the same.
The value can differ on Solaris, AIX and OpenBSD.
I guess ansible_machine
is supposed to be the machine architecture (value of platform.machine()
https://docs.python.org/3/library/platform.html), while ansible_architecture
is more the OS architecture?
QUESTION
On a M1 MacBook, ansible_architecture
and ansible_machine
returns the same value that is arm64
:
ANSWER
Answered 2021-Mar-28 at 07:14When using the Rosetta 2 emulation (Intel mode) on the M1 Mac, Ansible returns x86_64
values like the previous intel Mac:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mac-dev-playbook
Ensure Apple's command line tools are installed (xcode-select --install to launch the installer).
Install Ansible: Run the following command to add Python 3 to your $PATH: export PATH="$HOME/Library/Python/3.8/bin:/opt/homebrew/bin:$PATH" Upgrade Pip: sudo pip3 install --upgrade pip Install Ansible: pip3 install ansible
Clone or download this repository to your local drive.
Run ansible-galaxy install -r requirements.yml inside this directory to install required Ansible roles.
Run ansible-playbook main.yml --ask-become-pass inside this directory. Enter your macOS account password when prompted for the 'BECOME' password.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page