This commit is contained in:
Hideki Saito 2022-03-13 01:08:51 +09:00
parent 6f8101f49e
commit 6dbe55534a

View file

@ -42,7 +42,16 @@
copy:
src: "{{ output_dir }}/foo.txt"
dest: "{{ output_dir }}/foo.result"
when:
- ansible_facts.virtualization_type != 'docker'
- name: copy file to new filename
copy:
src: "{{ output_dir }}/foo.txt"
dest: "{{ output_dir }}/foo.result"
delegate_to: "{{ inventory_hostname }}"
when:
- ansible_facts.virtualization_type == 'docker'
#- name: synchronize file to new filename
# synchronize: