first commit

This commit is contained in:
2025-09-14 13:10:34 -07:00
commit 6f4fcb90e2
25 changed files with 869 additions and 0 deletions

61
cosmos-server.yaml Normal file
View File

@ -0,0 +1,61 @@
---
- name: Cosmos Server Pipeline
hosts: all
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
when: not refresh_special | bool
- role: docker_workstation
when: install_docker | bool and not refresh_special | bool
- role: nvidia_drivers
when: install_nvidia | bool and not refresh_special | bool
- role: ldap_client
when: install_LDAP | bool and not refresh_special | bool
tasks:
- name: display special_server
debug:
msg: "{{ special_server }}"
- 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
# - { role: octoprint, when: special_server | regex_search("Octoprint") }
# - { role: kodi, when: special_server | regex_search("Kodi") }
# - { role: timelapse, when: special_server | regex_search("Timelapse") }
...