Fix: When should not include templating

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-03-19 14:57:45 +01:00
parent 9a8ff818a0
commit 85393ae446
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -4,7 +4,7 @@
command: '{{ item.pre_command.command }}' command: '{{ item.pre_command.command }}'
args: args:
chdir: '{{ item.pre_command.chdir | default(item.dest) }}' chdir: '{{ item.pre_command.chdir | default(item.dest) }}'
when: '{{ item.pre_command is defined }}' when: item.pre_command is defined
- name: Checkout git repo - name: Checkout git repo
git: git:
@ -19,6 +19,6 @@
command: '{{ item.post_command.command }}' command: '{{ item.post_command.command }}'
args: args:
chdir: '{{ item.post_command.chdir | default(item.dest) }}' chdir: '{{ item.post_command.chdir | default(item.dest) }}'
when: '{{ item.post_command is defined and git_checkout.changed }}' when: item.post_command is defined and git_checkout.changed
... ...