You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/fetch/roles/fetch_tests/tasks/symlink.yml

14 lines
529 B
YAML

- name: Fetch the file via a symlink
fetch:
src: "{{ remote_tmp_dir }}/link"
dest: "{{ output_dir }}/fetched-link"
register: fetched_symlink
- name: Assert that we fetched correctly
assert:
that:
- fetched_symlink is changed
- fetched_symlink.checksum == "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3"
- fetched_symlink.remote_checksum == "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3"
- 'lookup("file", output_dir + "/fetched-link/" + inventory_hostname + remote_tmp_dir + "/link") == "test"'