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