Use yaml syntax for the badge playbook
This commit is contained in:
parent
02603cab58
commit
9a691c48a7
1 changed files with 20 additions and 6 deletions
|
@ -32,22 +32,36 @@
|
||||||
tempdir: "{{tmp.path}}"
|
tempdir: "{{tmp.path}}"
|
||||||
|
|
||||||
- name: clone the local bare repo
|
- 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
|
- 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
|
- 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
|
- 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
|
- 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
|
- 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:
|
handlers:
|
||||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue