cosmos kiosk playbook

This commit is contained in:
2025-09-28 11:26:45 -07:00
parent 6f4fcb90e2
commit 320ffa8393
7 changed files with 135 additions and 43 deletions

View File

@ -4,26 +4,6 @@
become: yes
vars:
iso_only: true
servers:
# make sure this lines up with the Jenkinsfile
- name: Octoprint
role: octoprint
- name: Kodi
role: kodi
- name: Timelapse
role: timelapse
- name: Build ISO
role: pxe_server
- name: Jenkins VPN
role: jenkins_vpn
- name: Puck VPN
role: puck_vpn
- name: Net Bridge
role: net_bridge
- name: Carputer
role: carputer
- name: VCR Capture
role: video_capture
roles:
- role: cosmos_init
@ -33,11 +13,13 @@
when: install_docker | bool and not refresh_special | bool
- role: nvidia_drivers
when: install_nvidia | bool and not refresh_special | bool
when: install_nvidia | bool and not refresh_special | bool and not skip_nvidia | bool
- role: ldap_client
when: install_LDAP | bool and not refresh_special | bool
# - role: special_server
tasks:
- name: display special_server
@ -46,12 +28,14 @@
- name: Run the appropriate role based on server type
include_role:
name: "{{ servers_item.role }}"
when: special_server | regex_search("{{ servers_item.name }}")
loop: "{{ servers }}"
loop_control:
loop_var: servers_item
name: "{{ special_server }}"
when: '"none" not in special_server'
# when: special_server | regex_search("{{ servers_item.name }}")
# loop: "{{ servers }}"
# loop_control:
# loop_var: servers_item
#
# - { role: octoprint, when: special_server | regex_search("Octoprint") }
# - { role: kodi, when: special_server | regex_search("Kodi") }
# - { role: timelapse, when: special_server | regex_search("Timelapse") }