- hosts: all tasks: - name: Checkout submodules shell: "[ -d {{ item }} ] && git submodule update --init {{ item }}" args: chdir: /home/zuul/src/gerrit.googlesource.com/gerrit loop: - modules/jgit - polymer-bridges