- hosts: all tasks: - name: Move plugin repos into gerrit tree command: "mv -f {{ item }} ../gerrit/plugins" args: chdir: /home/zuul/src/gerrit.googlesource.com/plugins loop: - commit-message-length-validator - download-commands - hooks - its-storyboard - its-base - javamelody - replication - reviewnotes - singleusergroup - name: Configure plugin bazel file lineinfile: path: /home/zuul/src/gerrit.googlesource.com/gerrit/tools/bzl/plugins.bzl insertafter: "# Add custom core plugins here" line: '"{{ item }}",' loop: - its-storyboard - its-base - javamelody - name: Configure javamelody external plugin deps file: state: link force: yes src: javamelody/external_plugin_deps.bzl path: /home/zuul/src/gerrit.googlesource.com/gerrit/plugins/external_plugin_deps.bzl