2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ansibleでbrew caskインストールのdirが指定できない?

Posted at

はじめに

osxをクリーンインストールしたので、
下記の記事を参考に、ansibleでローカル環境の構築をした。
http://mawatari.jp/archives/mac-provisioning-by-homebrew-and-ansible

その時につまずいたメモ。

caskで入れたアプリのインストール先が変更できない?

caskで入れるものは、/Applicationsにインストールしたい。
でも参考の記事を元に変数設定などしたが
$HOME/Applicationsにsymlinkがつくられる。。

○試したこと。

  • 環境変数にHOMEBREW_CASK_OPTS指定。 →ダメ
  • コマンド実行時に、HOMEBREW_CASK_OPTS="--appdir=/Applications"を指定 →ダメ
  • ansible使わずbrew cask install hoge --appdir=/Applications →OK

未解決なので、分かる方教えてくださいm(_ _)m

参考にしたもの

http://t-wada.hatenablog.jp/entry/mac-provisioning-by-ansible
http://docs.ansible.com/ansible/homebrew_cask_module.html

2
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?