https://github.com/koji/ansible-playbooks
ansible for local setup Mac
https://github.com/koji/ansible-playbooks
ansible macos
Last synced: 2 months ago
JSON representation
ansible for local setup Mac
- Host: GitHub
- URL: https://github.com/koji/ansible-playbooks
- Owner: koji
- Created: 2022-03-10T21:21:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-13T23:35:48.000Z (over 4 years ago)
- Last Synced: 2025-02-15T13:48:26.466Z (over 1 year ago)
- Topics: ansible, macos
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ansible playbooks
## requirements
To use ansible and playbook for mac, the followings must be intalled on Mac.
- homebrew
- ansible
- mas-cli
```zsh
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
$ brew install ansible
$ brew install mas
```
### how to check app id with mas
For installing Apps via App Store, we will need to know appId instead of App name.
```zsh
$ mas search Xcode
497799835 Xcode (13.2.1)
1388020431 DevCleaner for Xcode (2.3.1)
1179007212 Code School for Xcode Free -Learn How to Make Apps (1.1.3)
431748264 Pluralsight: Learn Tech Skills (3.24)
1083165894 Course for Xcode 7 Lite (1.0)
```
## how to use playbook
```zsh
$ git clone this repo
$ cd ansible
$ cd local
# if you update any yml files, need to check syntax with the following command
# if you get any errors, you will need to fix them.
$ ansible-playbook playbook.yml --syntax-check
# run ansible-playbook
$ ansible-playbook playbook.yml -K
```