- name: Delete existing /tmp/foo- file: path: /tmp/foo-{{inventory_hostname}} state: absent - name: Create /tmp/foo- copy: dest: /tmp/foo-{{inventory_hostname}} content: "{{content}}"