Created
September 15, 2016 18:15
-
-
Save acsrujan/35c24db8c3fb488bcaf8a335e536a320 to your computer and use it in GitHub Desktop.
Setting up new Mac with Ansible
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
tasks: | |
- name: Installs homebrew if not already present | |
command: brew -v | |
register: brew_check | |
- name: install homebrew with curl | |
command: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
when: brew_check.stdout.find('command not found') > -1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo easy_install pip | |
sudo pip install ansible |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment