forked from IppSec/parrot-build
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.yml
38 lines (35 loc) · 1.07 KB
/
main.yml
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
---
- name: "Customizing Kali"
hosts: localhost
connection: local
roles:
- role: "roles/install-tools"
- role: "roles/configure-tmux"
- role: "roles/customize-browser"
# - role: "roles/configure-logging"
- role: gantsign.visual-studio-code
- role: "roles/configure-system"
- role: "roles/customize-terminal"
users:
- username: "{{ ansible_user_id }}"
visual_studio_code_extensions:
- streetsidesoftware.code-spell-checker
- ms-python.python
- GitHub.copilot
- snyk-security.snyk-vulnerability-scanner
post_tasks:
- name: "Confirm restart lightdm"
pause:
prompt: "Are you ready to restart lightdm? (yes/no)"
register: restart_lightdm
- name: "Restart lightdm"
become: true
become_method: sudo
service:
name: lightdm
state: restarted
when: restart_lightdm.user_input == "yes"
- name: "Restart lightdm When Ready"
pause:
prompt: "Please restart lightdm when ready to apply changes"
when: restart_lightdm.user_input == "no"