mirror of https://github.com/ansible/ansible.git
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.
18 lines
394 B
YAML
18 lines
394 B
YAML
6 years ago
|
---
|
||
|
- name: take a copy of the original hosts file
|
||
|
win_copy:
|
||
|
src: C:\Windows\System32\drivers\etc\hosts
|
||
|
dest: '{{ remote_tmp_dir }}\hosts'
|
||
|
remote_src: yes
|
||
|
|
||
|
- block:
|
||
|
- name: run tests
|
||
|
include_tasks: tests.yml
|
||
|
|
||
|
always:
|
||
|
- name: restore hosts file
|
||
|
win_copy:
|
||
|
src: '{{ remote_tmp_dir }}\hosts'
|
||
|
dest: C:\Windows\System32\drivers\etc\hosts
|
||
|
remote_src: yes
|