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/win_get_url/tasks/main.yml

40 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