Revert "Move requirements into tests. (#35197)"

This reverts commit 4f6017dc16.
This commit is contained in:
Matt Clay 2018-01-23 10:54:25 -08:00
commit 69132007c0
13 changed files with 26 additions and 54 deletions

View file

@ -9,6 +9,10 @@
set_fact:
remote_file: "{{ remote_dir }}/foo.txt"
- name: Locate sha1sum/shasum
shell: which sha1sum || which shasum
register: sha1sum
- name: Initiate a basic copy, and also test the mode
copy:
src: foo.txt
@ -1123,7 +1127,7 @@
- stat_link_result.stat.islnk
- name: Get the checksum of the link target
shell: "{{ ansible_python_interpreter }} -c 'import hashlib; print(hashlib.sha1(open(\"{{remote_dir | expanduser}}/follow_test\", \"rb\").read()).hexdigest())'"
shell: "{{ sha1sum.stdout }} {{remote_dir}}/follow_test | cut -f1 -sd ' '"
register: target_file_result
- name: Assert that the link target was updated