init commit

This commit is contained in:
2025-09-28 18:02:09 -07:00
commit 01b88d4c07
10 changed files with 418 additions and 0 deletions

47
tasks/main.yaml Normal file
View File

@ -0,0 +1,47 @@
---
- name: check arch if needed
when: refresh_special | bool
block:
- name: Video Capture - Check CPU Arch
shell: "dpkg --print-architecture"
register: cpu_architecture_output
- name: Set cpu_architecture variable
set_fact:
cpu_architecture: "{{ cpu_architecture_output.stdout_lines[0] }}"
- name: kiosk variable handler
block:
# when coming from jenkins overwrite the variable
- name: include jenkins vars
when: jenkins_kiosk | bool
block:
- name: import jenkins var file
include_vars:
file: "{{ kiosk_yaml }}"
name: kiosk_vars
- debug:
msg: "{{ kiosk_vars.kiosk_service_templates }}"
- name: overwrite kiosk_service_templates
set_fact:
kiosk_service_templates: "{{ kiosk_vars.kiosk_service_templates }}"
- name: check if multiple and set create_data_dir, force_x11 accordingly
when: kiosk_service_templates | length > 1
set_fact:
create_data_dir: true
force_x11: true
- debug:
msg: "{{ 'Multiple Services Requested, data directories will be created and X11 will be forced.' if kiosk_service_templates | length > 1 else 'Single page requested; no data directory and wayland may be used.' }}"
- name: Autologin Setup
include_tasks: autologin.yaml
- name: Install KDE + Kiosk Services
include_tasks: chrome.yaml
...