-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathApp.yaml
33 lines (33 loc) · 2.9 KB
/
App.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
---
- hosts: 2019A
gather_facts: no
become: no
tasks:
- name: "Create script folder"
win_file:
path: C:\Scripts
state: directory
- name: "App directory"
win_file:
path: C:\Scripts\App
state: directory
- name: "Create app config directory"
win_file:
path: C:\Scripts\App\Config
state: directory
- name: "Download config file for app"
get_url:
url: "http://{{proget_host}}:8624/endpoints/Config/content/App.conf"
dest: /tmp/App.conf
url_username: "{{proget_user}}"
url_password: "{{proget_pass}}"
delegate_to: localhost
- name: "Copy App.conf to the remote host!"
win_copy:
src: /tmp/App.conf
dest: C:\Scripts\App\Config\App.conf
- name: "Remove App.conf from tmp"
file:
path: /tmp/App.conf
state: absent
delegate_to: localhost