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.
22 lines
642 B
YAML
22 lines
642 B
YAML
6 years ago
|
---
|
||
|
- set_fact:
|
||
|
AnsibleVhdx: '{{ remote_tmp_dir }}\AnsiblePart.vhdx'
|
||
|
|
||
|
- name: Copy VHDX scripts
|
||
|
win_template:
|
||
|
src: "{{ item.src }}"
|
||
|
dest: '{{ remote_tmp_dir }}\{{ item.dest }}'
|
||
|
loop:
|
||
|
- { src: partition_creation_script.j2, dest: partition_creation_script.txt }
|
||
|
- { src: partition_deletion_script.j2, dest: partition_deletion_script.txt }
|
||
|
|
||
|
- name: Create partition
|
||
|
win_command: diskpart.exe /s {{ remote_tmp_dir }}\partition_creation_script.txt
|
||
|
|
||
|
- name: Run tests
|
||
|
block:
|
||
|
- include: tests.yml
|
||
|
always:
|
||
|
- name: Detach disk
|
||
|
win_command: diskpart.exe /s {{ remote_tmp_dir }}\partition_deletion_script.txt
|