macの初期設定用ansibleファイルです。
brewを実行するためにまずxcodeをインストールします。
-
App Storeからxcodeをインストール
-
ライセンスに同意
sudo xcodebuild -license
- xcode command line toolsをインストール
xcode-select --install
パッケージ管理のためにhomebrewをインストールします。
- homebrewをインストール
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
- homebrewの状態チェック、更新
brew doctor
brew update
- brewでansibleをインストール
brew install ansible
- リポジトリのルートディレクトリで下記コマンドを実行
sh run_ansible.sh