big jenkinsfile update

This commit is contained in:
2025-10-12 16:49:35 -07:00
parent 320ffa8393
commit 2446f3c039
17 changed files with 148 additions and 49 deletions

View File

@ -1,9 +1,17 @@
---
# https://us.fanntik.top/product/fanttik-e1-max-precision-electric-screwdriver-5/
- name: Ansible Test
hosts: all
become: yes
vars:
v4l2_id_string:
- "earlytest"
- "AV TO USB2.0"
- "USB Video"
- "generictest"
- "beholdmybutthole"
video_ID_0: ""
ip_check_folder: "/opt/cosmos/ip_check"
#vpn_endpoint: "172.30.2.1"
#gather_only: true
#cpu_architecture: "amd64"
@ -51,21 +59,46 @@
tasks:
- name: include vars
ansible.builtin.include_vars:
file: /var/jenkins_home/ansible/roles/chrome_kiosk/files/kiosk.yaml
name: kiosk_vars
- name: user security check
include_role:
name: "cosmos_init"
vars:
security_check_only: true
- name: get debian version info
shell: 'cat /etc/os-release | grep VERSION_ID | cut -d\" -f2'
register: os_version_id_output
- debug:
msg: "{{ kiosk_vars.kiosk_service_templates }}"
msg: |
{{ os_version_id_output.stdout_lines[0] }}
#
# - name: prereqs - get debian version info
# shell: 'cat /etc/os-release | grep VERSION_ID | cut -d\" -f2'
# register: os_version_id_output
# - debug:
# msg: |
# {{ os_version_id_output }}
# - name: video_capture - check for each video device
# shell: "v4l2-ctl --list-devices 2> /dev/null | grep -A3 '{{ v4l2_strings }}' | grep video | head -n 1 | awk '{print $1}' || true"
# register: v4l2_id_string_check
# loop: "{{ v4l2_id_string }}"
# loop_control:
# loop_var: v4l2_strings
#
# - name: video_capture - get video device
# when: video_check_output.stdout | length > 0
# set_fact:
# video_ID_0: "{{ video_check_output.stdout_lines[0] }}"
# no_log: true
# loop: "{{ v4l2_id_string_check.results }}"
# loop_control:
# loop_var: video_check_output
#
# - name: show output
# debug:
# msg: "{{ v4l2_id_string_check.results }}"
# msg: "Result: {{ video_ID_0 }}"
# /var/jenkins_home/ansible-files/lldp_scan/cosmos-deb{{ os_version_id_output.stdout_lines[0] }}.tar.gz