Sets wallpaper, setup lightburn (not working)
This commit is contained in:
parent
43c2eae32a
commit
0b99f6b73b
|
|
@ -1,4 +1,10 @@
|
||||||
|
|
||||||
|
users:
|
||||||
|
- name: hobbyengel
|
||||||
|
password: start140
|
||||||
|
wallpaper: ~/FABLAB FileCloud/IT-admin (don't touch!)/wallpaper/PNG/Hobbyhimmel_fablab-pc_wallpaper_1920x1200.png
|
||||||
|
default_groups:
|
||||||
|
- dialout
|
||||||
# VS Code variables
|
# VS Code variables
|
||||||
# https://github.com/avnes/ansible-role-vscode
|
# https://github.com/avnes/ansible-role-vscode
|
||||||
vscode_microsoft_asc_url: https://packages.microsoft.com/keys/microsoft.asc
|
vscode_microsoft_asc_url: https://packages.microsoft.com/keys/microsoft.asc
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,19 @@
|
||||||
vars_files: secrets.yaml
|
vars_files: secrets.yaml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
|
- name: Add users
|
||||||
|
user:
|
||||||
|
name: "{{ item.name }}"
|
||||||
|
password: "{{ item.password | password_hash('sha512') }}"
|
||||||
|
shell: "/bin/zsh"
|
||||||
|
loop: "{{ users }}"
|
||||||
|
- name: Add users to default groups
|
||||||
|
user:
|
||||||
|
groups: "{{ default_groups }}"
|
||||||
|
append: true
|
||||||
|
name: "{{ item.name }}"
|
||||||
|
loop: "{{ users }}"
|
||||||
- name: Setup apt-transport-https (needed by Microsoft PPA)
|
- name: Setup apt-transport-https (needed by Microsoft PPA)
|
||||||
apt:
|
apt:
|
||||||
name: apt-transport-https
|
name: apt-transport-https
|
||||||
|
|
@ -54,10 +67,16 @@
|
||||||
- com.prusa3d.PrusaSlicer
|
- com.prusa3d.PrusaSlicer
|
||||||
- org.filezillaproject.Filezilla
|
- org.filezillaproject.Filezilla
|
||||||
state: latest
|
state: latest
|
||||||
|
- name: Install LightBurn
|
||||||
|
import_tasks: ./tasks/setup_lightburn.yaml
|
||||||
- name: Setup OpenRobertaConnectior
|
- name: Setup OpenRobertaConnectior
|
||||||
import_tasks: ./tasks/openrobertaconnector.yaml
|
import_tasks: ./tasks/openrobertaconnector.yaml
|
||||||
- name: cups_browserd deaktivieren
|
- name: cups_browserd deaktivieren
|
||||||
import_tasks: ./tasks/disable_browsed.yaml
|
import_tasks: ./tasks/disable_browsed.yaml
|
||||||
|
- name: Wallpaper setzen
|
||||||
|
import_tasks: ./tasks/set_wallpaper.yaml
|
||||||
|
|
||||||
|
|
||||||
# done - name: Firefox installieren
|
# done - name: Firefox installieren
|
||||||
# - name: ublock Installieren
|
# - name: ublock Installieren
|
||||||
# - name: DSGVO deny Installieren
|
# - name: DSGVO deny Installieren
|
||||||
|
|
@ -65,11 +84,7 @@
|
||||||
# - name: do not translate
|
# - name: do not translate
|
||||||
# - name: Fonts installieren
|
# - name: Fonts installieren
|
||||||
# - name: Links zu Benutzerdaten in Nextcloud installieren
|
# - name: Links zu Benutzerdaten in Nextcloud installieren
|
||||||
# - name: HobbyEngel und roberta anlegen
|
|
||||||
# - name: alle User in Dialout hinzufügen
|
|
||||||
# - name: Hintergrund setzen
|
|
||||||
# - name: LaserSoftware installieren
|
# - name: LaserSoftware installieren
|
||||||
# - name: Grafiktreiber installieren
|
|
||||||
|
|
||||||
# Stop firefox from snap: https://balintreczey.hu/blog/firefox-on-ubuntu-22-04-from-deb-not-from-snap/
|
# Stop firefox from snap: https://balintreczey.hu/blog/firefox-on-ubuntu-22-04-from-deb-not-from-snap/
|
||||||
|
|
||||||
12
tasks/set_wallpaper.yaml
Normal file
12
tasks/set_wallpaper.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
- name: Copy wallpaper file
|
||||||
|
copy: src={{wallpaper}} dest=/home/{{item.name}}/.wallpaper.jpg
|
||||||
|
loop: "{{users}}"
|
||||||
|
- name: Set GNOME Wallpaper
|
||||||
|
become_user: "{{user.name}}"
|
||||||
|
dconf: key="/org/gnome/desktop/background/picture-uri" value="'file:///home/{{user.name}}/.wallpaper.jpg'"
|
||||||
|
loop: "{{users}}"
|
||||||
|
- name: Set GNOME Wallpaper scale
|
||||||
|
become_user: "{{user.name}}"
|
||||||
|
dconf: key="/org/gnome/desktop/background/picture-options" value="'scaled'"
|
||||||
|
loop: "{{users}}"
|
||||||
|
|
||||||
24
tasks/setup_lightburn.yaml
Normal file
24
tasks/setup_lightburn.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
- become: yes
|
||||||
|
hosts: all
|
||||||
|
vars_files: secrets.yaml
|
||||||
|
tasks:
|
||||||
|
- block:
|
||||||
|
- name: Create folder for LightBurn
|
||||||
|
file:
|
||||||
|
path: ~/lightburn
|
||||||
|
state: directory
|
||||||
|
- name: Get latest version
|
||||||
|
uri:
|
||||||
|
url: "https://github.com/LightBurnSoftware/deployment/raw/refs/heads/master/currentversion.json"
|
||||||
|
return_content: true
|
||||||
|
register: lb_latest
|
||||||
|
- name: Download latest
|
||||||
|
loop: "{{lb_latest}}"
|
||||||
|
when: unix64_app in item
|
||||||
|
get_url:
|
||||||
|
dest: ~/lightburn/
|
||||||
|
url: "{{item.file}}"
|
||||||
|
vars:
|
||||||
|
- ansible_become_user: "{{users[0].name}}"
|
||||||
|
- ansible_become_password: "{{users[0].password}}"
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user