File tree Expand file tree Collapse file tree 1 file changed +9
-17
lines changed
Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Original file line number Diff line number Diff line change 55 data_path : " ../ad/{{ domain_name }}/data/"
66 tags : ' data'
77
8+ ---
9+ # Load datas
10+ - import_playbook : data.yml
11+ vars :
12+ data_path : " ../ad/{{domain_name}}/data/"
13+ tags : ' data'
14+
815- name : WinScp for Robin
916 hosts : srv02
1017 tasks :
11- - name : Import WinSCP registry on SRV02
18+ - name : Winscp on SRV2
1219 ansible.windows.win_shell : |
13- reg import C:\winscp.reg
14-
15- - name : Create WinSCP shortcut on harley.quinn's desktop
16- ansible.windows.win_powershell :
17- script : |
18- $WshShell = New-Object -comObject WScript.Shell
19- $Shortcut = $WshShell.CreateShortcut("C:\Users\harley.quinn\Desktop\WinSCP.lnk")
20- $Shortcut.TargetPath = "C:\Program Files (x86)\WinSCP\WinSCP.exe"
21- $Shortcut.Description = "WinSCP - SFTP and FTP Client"
22- $Shortcut.IconLocation = "C:\Program Files (x86)\WinSCP\WinSCP.exe,0"
23- $Shortcut.Save()
24-
25- - name : Remove winscp.reg file after import
26- ansible.windows.win_file :
27- path : C:\winscp.reg
28- state : absent
20+ reg import C:\winscp.reg
You can’t perform that action at this time.
0 commit comments