forked from r3ap3rpy/ansibler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy_wireshark.yaml
39 lines (38 loc) · 1.48 KB
/
deploy_wireshark.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
37
38
---
- hosts: 2019A
gather_facts: no
tasks:
- name: "Download wireshark"
get_url:
url: https://1.eu.dl.wireshark.org/win64/Wireshark-win64-3.0.7.exe
dest: ~/wireshark.exe
delegate_to: localhost
- name: "Download nmap"
get_url:
url: https://nmap.org/dist/nmap-7.80-setup.exe
dest: ~/nmap.exe
delegate_to: localhost
- name: "Create folder for C:\\temp"
win_file:
path: C:\temp
state: directory
- name: "Copy Wireshark and nmapi"
win_copy:
src: '~/{{item}}'
dest: C:\temp\{{item}}
with_items:
- 'wireshark.exe'
- 'nmap.exe'
- name: "Uninstalling previous version of nmap"
win_shell: |
Start-Process -FilePath (Get-ItemProperty -Path HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Nmap -Name UninstallString).UninstallString -ArgumentList "/S" -Wait -NoNewWindow
- name: "Uninstalling previous version of wireshark"
win_shell: |
Start-Process -FilePath (Get-ItemProperty -Path HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\WireShark -Name UninstallString).UninstallString -ArgumentList "/S" -Wait -NoNewWindow
- name: "Install nmap"
win_shell: |
Start-Process -FilePath C:\temp\nmap.exe -ArgumentList "/S" -Wait -NoNewWindow
ignore_errors: yes
- name: "Install wireshark"
win_shell: |
Start-Process -FilePath C:\temp\wireshark.exe -ArgumentList "/NCRC","/S","/desktopicon=yes","/quicklaunchicon=yes" -Wait -NoNewWindow