我只想为projectA
下面剧本中的项目强制复制文件。
- name: Populate /usr/local/mywork/ binaries where necessary
copy:
src: "output/here/usr/local/mywork/{{item}}"
dest: "/usr/local/mywork/{{ item }}"
force: '{{ item == "projectA" }}'
with_items: "{{ server_files }}"
我补充道force: '{{ item == "projectA" }}'
。
但它不起作用。有些部分不正确?