From 9a691c48a724ab909eb8255f8c031e4513febd85 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 4 Aug 2020 16:24:03 +0200 Subject: [PATCH] Use yaml syntax for the badge playbook --- playbooks/manual/push-badges.yml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/playbooks/manual/push-badges.yml b/playbooks/manual/push-badges.yml index 83e7e2648e..67d0751496 100644 --- a/playbooks/manual/push-badges.yml +++ b/playbooks/manual/push-badges.yml @@ -32,22 +32,36 @@ tempdir: "{{tmp.path}}" - name: clone the local bare repo - git: dest={{tempdir}} repo=/git/badges remote=origin update=yes + git: + dest: "{{tempdir}}" + repo: /git/badges + remote: origin + update: yes - name: add pagure as a second remote - command: git remote add pagure {{upstream}} chdir={{tempdir}} + command: git remote add pagure {{upstream}} + args: + chdir: "{{tempdir}}" - name: pull down changes from pagure - command: git pull pagure master chdir={{tempdir}} + command: git pull pagure master + args: + chdir: "{{tempdir}}" - name: push pagure changes back to the lockbox bare repo - command: git push origin master chdir={{tempdir}} + command: git push origin master + args: + chdir: "{{tempdir}}" - name: clean up that temporary {{tempdir}} dir - file: dest={{tempdir}} state=absent + file: + dest: "{{tempdir}}" + state: absent - name: and pull those commits from the bare repo to the working dir - command: git pull origin master chdir={{workingdir}} + command: git pull origin master + args: + chdir: "{{workingdir}}" handlers: - import_tasks: "{{ handlers_path }}/restart_services.yml"