WakeOnLan, erste Versuche soundfix
This commit is contained in:
parent
cd7863c142
commit
ae71f87b98
12 changed files with 153 additions and 12 deletions
70
roles/qgm_vpdisplay/tasks/main.yml
Normal file
70
roles/qgm_vpdisplay/tasks/main.yml
Normal file
|
@ -0,0 +1,70 @@
|
|||
vars_files:
|
||||
- settings.vault
|
||||
|
||||
vars:
|
||||
packages:
|
||||
- vim
|
||||
- firefox-esr
|
||||
- i3
|
||||
- xorg
|
||||
- git
|
||||
- unclutter
|
||||
|
||||
tasks:
|
||||
- name: "Install needed Packages"
|
||||
apt:
|
||||
pkg:
|
||||
"{{ packages }}"
|
||||
|
||||
- name: "change line in systemd config for autologin"
|
||||
lineinfile:
|
||||
path: "/etc/systemd/system/getty.target.wants/getty@tty1.service"
|
||||
regexp: "ExecStart=-/sbin/agetty"
|
||||
line: "ExecStart=-/sbin/agetty --noclear --autologin vp %I $TERM"
|
||||
|
||||
- name: "Copy .profile for startx"
|
||||
copy:
|
||||
src: "files/dot.profile"
|
||||
dest: "/home/vp/.profile"
|
||||
owner: vp
|
||||
group: vp
|
||||
mode: 0755
|
||||
|
||||
- name: "Create i3 config dir"
|
||||
file:
|
||||
path: "/home/vp/.config/i3"
|
||||
state: directory
|
||||
owner: vp
|
||||
group: vp
|
||||
mode: '0755'
|
||||
|
||||
- name: "Copy i3 config"
|
||||
copy:
|
||||
src: "files/i3.config"
|
||||
dest: "/home/vp/.config/i3/config"
|
||||
owner: vp
|
||||
group: vp
|
||||
mode: 0644
|
||||
|
||||
- name: "Get vplan display repo"
|
||||
git:
|
||||
repo: "https://gitea.schule.social/QG-VP-Dev/VP-Screens-Management.git"
|
||||
dest: /home/vp/vp
|
||||
|
||||
- name: "Configuration Template for Vplan"
|
||||
template:
|
||||
src: "templates/settings.js.j2"
|
||||
dest: "/home/vp/vp/settings.js"
|
||||
owner: vp
|
||||
group: vp
|
||||
mode: 0644
|
||||
|
||||
- name: "Change to teacher version if applicable"
|
||||
when: "'lehrer' in group_names"
|
||||
lineinfile:
|
||||
path: "/home/vp/vp/settings.js"
|
||||
regexp: "^const plantype"
|
||||
line: "const plantype = \"lehrer\";"
|
||||
|
||||
- name: "Reboot"
|
||||
ansible.builtin.reboot:
|
Loading…
Add table
Add a link
Reference in a new issue