LoginSignup
7
6

More than 5 years have passed since last update.

【ansible】ansible1.8.xで gitモジュールのオプション update=noをつけている場合はcloneされない

Last updated at Posted at 2015-01-07

ハマった。。。。
先にissueを見ておけばよかった。。
年末に新しいMacマシーンが来てタイミング的にドンピシャなバージョンを引いてしまった

関連するissues

事象

以下のplaybookでgitモジュールが何故かcloneされなかった

以下playbook

- name: Git Clone vimproc
  git: repo=https://github.com/Shougo/vimproc
       dest=/home/{{ ansible_env.SUDO_USER }}/.vim/bundle/vimproc
       update=no

cloneされなかった原因は update=no をつけていたから

解決方法

  • playbookで記載されている update=no を削除する
  • ansibleのバージョンを1.7.xにする
- name: Git Clone vimproc
  git: repo=https://github.com/Shougo/vimproc
       dest=/home/{{ ansible_env.SUDO_USER }}/.vim/bundle/vimproc

Bug Fixのタイミング

上記のgit module doesn't clone the repo if update=noでコメントされているが

@axos88 Just that it is a new feature so it belongs into a 1.9.x rather than a bugfix release.

と記載されているのでansible1.9までは解消されないかもしれません
(issuesの英語をちゃんと読んでいなので間違いあったら Please 編集リクエスト)

情報弱者でツラタンだわ。。。。。。。

7
6
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
7
6