Izveden refactor iz taskov v role
This commit is contained in:
parent
747438dedf
commit
a35460a57b
317 changed files with 2761 additions and 50 deletions
4
roles/wireshark/tasks/main.yml
Normal file
4
roles/wireshark/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- import_tasks: main_win.yml
|
||||
when: ansible_connection == 'winrm'
|
||||
- import_tasks: main_lin.yml
|
||||
when: ansible_connection == 'ssh'
|
10
roles/wireshark/tasks/main_lin.yml
Normal file
10
roles/wireshark/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
- name: Enable non-privileged users to run wireshark
|
||||
ansible.builtin.debconf:
|
||||
name: wireshark
|
||||
question: wireshark-common/install-setuid
|
||||
value: true
|
||||
vtype: boolean
|
||||
- name: "Install Wireshark"
|
||||
apt:
|
||||
name: wireshark-qt
|
||||
state: latest
|
20
roles/wireshark/tasks/main_win.yml
Normal file
20
roles/wireshark/tasks/main_win.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
# npcap=0.96 is the last version to support silent installation
|
||||
- name: Install npcap
|
||||
win_package:
|
||||
path: https://npcap.com/dist/npcap-0.96.exe
|
||||
arguments: /S
|
||||
creates_path: "%ProgramFiles%\\Npcap\\npcap.cat"
|
||||
|
||||
- name: Install Wireshark
|
||||
win_chocolatey:
|
||||
name: wireshark
|
||||
|
||||
- name: Touch Wireshark preferences
|
||||
win_file:
|
||||
path: "%ProgramFiles%\\Wireshark\\preferences"
|
||||
state: touch
|
||||
|
||||
- name: Disable Wireshark auto updates
|
||||
win_lineinfile:
|
||||
path: "%ProgramFiles%\\Wireshark\\preferences"
|
||||
line: "gui.update.enabled: FALSE"
|
Loading…
Add table
Add a link
Reference in a new issue