-
Notifications
You must be signed in to change notification settings - Fork 1
/
win.yaml
37 lines (29 loc) · 893 Bytes
/
win.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
- name: main playbook
hosts: localhost
tasks:
- add_host:
name: '{{ ip }}'
group: dynamic
ansible_user: Administrator
ansible_password: '{{ pass }}'
ansible_connection: winrm
ansible_winrm_server_cert_validation: ignore
ansible_winrm_read_timeout_sec: 600
- hosts: dynamic
tasks:
- name: build
script: build.bat
- name: collect output
script:
cmd: collect.sh {{ sha }} {{ branch }} {{ override }}
executable: '"C:\Program Files\Git\bin\bash.exe"'
- name: bundle output
win_command: 7z a bundle.zip *.zip
args:
chdir: C:\Users\Administrator\output
creates: bundle.zip
- name: fetch output
fetch:
src: '"C:\Users\Administrator\output\bundle.zip"'
dest: output/
flat: yes