LoginSignup
1
0

More than 3 years have passed since last update.

ansible-galaxyコマンドでインストールしたroleをアップデートしたい

Posted at

何がやりたいか

ansible-galaxyでインストールしたroleの元のリポジトリに変更があったときに、実行側でも追従したい。

$ ansible-galaxy install -r requirements.yml

これだと実行しても変更はないよって言われてしまう。updateのコマンドはないので一度removeしてからinstallし直すことで更新できるがめんどくさい。

そんなときは

$ ansible-galaxy install -r requirements.yml --force

これでインストールし直してくれて、更新される。

ちゃんとしよう

手っ取り早いアップデートの方法を紹介したが、プロダクションで使うならちゃんとブランチ名とかコミットハッシュでバージョン管理をしよう。

1
0
0

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
1
0