1- name: Move foo to bar 2command: mv /path/to/foo /path/to/bar or check first and do a copy if it exist 1- name: stat foo 2stat: path=/path/to/foo 3register: foo_stat 45- name: Move foo to bar 6command: mv /path/to/foo /path/to/bar 7when: foo_stat.stat.exists and, for ansible 2.0+, you can do: 1- name: Copy files from …
Read More