mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Revert "Move requirements into tests. (#35197)"
This reverts commit 4f6017dc16
.
This commit is contained in:
parent
eae23d2dbd
commit
69132007c0
13 changed files with 26 additions and 54 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue