mirror of
https://github.com/luzifer-ansible/deploy-git.git
synced 2024-11-08 13:20:01 +00:00
By default execute in repo dir
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
ec2bb509b6
commit
a58780d86b
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
- name: Execute pre-commands
|
||||
command: '{{ item.pre_command.command }}'
|
||||
args:
|
||||
chdir: '{{ item.pre_command.chdir | default(omit) }}'
|
||||
chdir: '{{ item.pre_command.chdir | default(item.dest) }}'
|
||||
with_items: '{{ git_checkouts }}'
|
||||
when: '{{ item.pre_command is defined }}'
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
|||
- name: Execute post-commands
|
||||
command: '{{ item.post_command.command }}'
|
||||
args:
|
||||
chdir: '{{ item.post_command.chdir | default(omit) }}'
|
||||
chdir: '{{ item.post_command.chdir | default(item.dest) }}'
|
||||
with_items: '{{ git_checkouts }}'
|
||||
when: '{{ item.post_command is defined }}'
|
||||
|
||||
|
|
Loading…
Reference in a new issue