- hosts: localhost connection: local gather_facts: false vars: repository: "git@git.dev-at.de:smardigo/maven/smardigo-maven-versions.git" branch_type: "spike" branch_ticket: "TST-0001" pre_tasks: - name: "Checkout git repository" ansible.builtin.git: repo: "{{ repository }}" dest: "./checkout" version: "master" - name: "Insert/Update branch configuration" template: src: 'create-branch-maven.j2' dest: './checkout/.ci_create-branch-maven' - name: "Branching project" shell: ". .ci_create-branch-maven" args: chdir: "./checkout"