aur: Fix preexec conditional execution
This commit is contained in:
@@ -392,9 +392,7 @@
|
|||||||
chdir: "{{ item.1.stat.path | dirname }}"
|
chdir: "{{ item.1.stat.path | dirname }}"
|
||||||
become_user: makepkg
|
become_user: makepkg
|
||||||
become: true
|
become: true
|
||||||
when:
|
when: not item[0].stat.exists or (item[0].stat.checksum|default('') != item[1].stat.checksum)
|
||||||
- not item[0].stat.exists
|
|
||||||
- item[0].stat.checksum|default('') != item[1].stat.checksum
|
|
||||||
loop: "{{ preexec_before.results| reject('skipped')|zip(preexec_after.results| reject('skipped')) }}"
|
loop: "{{ preexec_before.results| reject('skipped')|zip(preexec_after.results| reject('skipped')) }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.1.stat.path }}"
|
label: "{{ item.1.stat.path }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user