-
Notifications
You must be signed in to change notification settings - Fork 0
/
debidesk.yml
125 lines (109 loc) · 2.55 KB
/
debidesk.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
---
- name: Configure my remote Desktop
hosts:
- debidesk
vars:
use_handlers: 'true'
use_reboot: 'false'
use_logout: 'false'
tasks:
- name: Setup user account
include_role:
name: useraccount
- name: Setup swap space
include_role:
name: swapfilesetup
- name: Self-Signed cert
include_role:
name: selfsignedcert
- name: Shell Tools
block:
- name: Install shell tools
package:
name:
- vim
- htop
- curl
- mc
- screen
- git
- ncdu
- wget
- less
- nmap
- mtr
- parted
- dosfstools
- btrfs-progs
- exfatprogs
- ntfs-3g
- xfsprogs
- gpart
- unp
- unrar
- unzip
- bzip2
- p7zip
- unace
- cpio
- sharutils
- cabextract
- name: Create vimrc
copy:
dest: /root/.vimrc
owner: root
group: root
mode: u=rw,go=-
content: |
set background=dark
syntax on
set mouse=
- name: Install desktop
package:
name:
- kde-full
#- kde-standard
- python3-firewall
- pipewire
- fonts-recommended
- firefox-esr
- firefox-esr-l10n-de
- thunderbird
- thunderbird-l10n-de
- seafile-gui
- nextcloud-desktop
- keepass2
- handbrake
- libreoffice
- libreoffice-l10n-de
- transmission-qt
- name: Configure XRDP
include_role:
name: xrdpsetup
- name: Ensure firewalld
systemd_service:
name: firewalld
state: started
enabled: true
- name: Open Ports
ansible.posix.firewalld:
zone: public
port: "{{item}}"
permanent: true
immediate: true
state: enabled
loop:
- 22/tcp
- 3389/tcp
- name: Configure perrys-ansible-apply
include_role:
name: applyscriptsetup
- name: Finish Setup
block:
- name: Trigger handlers
ansible.builtin.meta: flush_handlers
- name: Reboot
shell:
executable: /usr/bin/bash
cmd: reboot
when: use_reboot | bool