By default execute in repo dir

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-03-19 14:49:57 +01:00
parent ec2bb509b6
commit a58780d86b
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

@ -3,7 +3,7 @@
- name: Execute pre-commands - name: Execute pre-commands
command: '{{ item.pre_command.command }}' command: '{{ item.pre_command.command }}'
args: args:
chdir: '{{ item.pre_command.chdir | default(omit) }}' chdir: '{{ item.pre_command.chdir | default(item.dest) }}'
with_items: '{{ git_checkouts }}' with_items: '{{ git_checkouts }}'
when: '{{ item.pre_command is defined }}' when: '{{ item.pre_command is defined }}'
@ -19,7 +19,7 @@
- name: Execute post-commands - name: Execute post-commands
command: '{{ item.post_command.command }}' command: '{{ item.post_command.command }}'
args: args:
chdir: '{{ item.post_command.chdir | default(omit) }}' chdir: '{{ item.post_command.chdir | default(item.dest) }}'
with_items: '{{ git_checkouts }}' with_items: '{{ git_checkouts }}'
when: '{{ item.post_command is defined }}' when: '{{ item.post_command is defined }}'