-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ms
committed
Mar 13, 2024
1 parent
e91ee04
commit f67d7cb
Showing
11 changed files
with
54 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
- name: install caido | ||
# https://github.com/caido/caido/releases | ||
shell: | | ||
wget https://storage.googleapis.com/caido-releases/"{{ caido_version }}"/caido-desktop-"{{ caido_version }}"-linux-x86_64.deb | ||
sudo dpkg -i caido-desktop-"{{ caido_version }}"-linux-x86_64.deb | ||
register: caido | ||
- debug: | ||
msg: "{{ caido.stdout }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
- name: install firefox | ||
command: sudo snap install firefox | ||
register: firefox | ||
- debug: | ||
msg: "{{ firefox.stdout }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,5 @@ | ||
--- | ||
- name: install and configure xfce4 | ||
shell: | | ||
sudo apt-get update | ||
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install xfce4 | ||
sudo apt install xfce4-session | ||
echo xfce4-session >~/.xsession | ||
register: xfce4 | ||
- debug: | ||
msg: "{{ xfce4.stdout }}" | ||
|
||
- name: install and configure xrdp | ||
shell: | | ||
sudo apt-get -y install {{ xrdp_package }} | ||
sudo systemctl enable {{ xrdp_package }} | ||
sudo systemctl restart {{ xrdp_package }} | ||
register: xrdp | ||
- debug: | ||
msg: "{{ xrdp.stdout }}" | ||
|
||
- name: install firefox | ||
command: sudo snap install firefox | ||
register: firefox | ||
- debug: | ||
msg: "{{ firefox.stdout }}" | ||
|
||
- name: change user password | ||
shell: | | ||
echo "{{ rdp_user }}:{{ rdp_pass }}" | sudo chpasswd | ||
register: rdp_user | ||
- debug: | ||
msg: "{{ rdp_user.stdout }}" | ||
- include_tasks: xrdp.yml | ||
- include_tasks: firefox.yml | ||
- include_tasks: caido.yml | ||
- include_tasks: pass.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
- name: change user password | ||
shell: | | ||
echo "{{ rdp_user }}:{{ rdp_pass }}" | sudo chpasswd | ||
register: rdp_user | ||
- debug: | ||
msg: "{{ rdp_user.stdout }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
- name: install and configure xfce4 | ||
shell: | | ||
sudo apt-get update | ||
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install xfce4 | ||
sudo apt install xfce4-session | ||
echo xfce4-session >~/.xsession | ||
register: xfce4 | ||
- debug: | ||
msg: "{{ xfce4.stdout }}" | ||
|
||
- name: install and configure xrdp | ||
shell: | | ||
sudo apt-get -y install {{ xrdp_package }} | ||
sudo systemctl enable {{ xrdp_package }} | ||
sudo systemctl restart {{ xrdp_package }} | ||
register: xrdp | ||
- debug: | ||
msg: "{{ xrdp.stdout }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,6 @@ | |
vars: | ||
rdp_user: "{{ RDP_USER }}" | ||
rdp_pass: "{{ RDP_PASS }}" | ||
caido_version: "v0.33.0" | ||
roles: | ||
- role: apply |