1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/win_get_url/tasks/main.yml
Jordan Borean d3792145d5
win_get_url - refactor tests to use httptester (#53765)
* win_get_url - refactor tests to use httptester

* Use the file lookup instead of slurp
2019-03-14 08:04:49 +10:00

39 lines
901 B
YAML

---
- name: copy across testing files
win_copy:
src: files/
dest: '{{ remote_tmp_dir }}'
- name: download SlimFTPd binary
win_get_url:
url: https://s3.amazonaws.com/ansible-ci-files/test/integration/roles/test_win_get_url/SlimFTPd.exe
dest: '{{ remote_tmp_dir }}\SlimFTPd.exe'
- name: template SlimFTPd configuration file
win_template:
src: slimftpd.conf.tmpl
dest: '{{ remote_tmp_dir }}\slimftpd.conf'
- name: create SlimFTPd service
win_service:
name: SlimFTPd
path: '"{{ remote_tmp_dir }}\SlimFTPd.exe" -service'
state: started
dependencies:
- tcpip
- block:
- name: run URL tests
import_tasks: tests_url.yml
- name: run FTP tests
import_tasks: tests_ftp.yml
- name: run checksum tests
import_tasks: tests_checksum.yml
always:
- name: remove SlimFTPd service
win_service:
name: SlimFTPd
state: absent