126 lines
3.5 KiB
YAML
126 lines
3.5 KiB
YAML
---
|
|
# https://www.newyorker.com/culture/the-new-yorker-documentary/the-shutdown-of-usaid-has-already-killed-hundreds-of-thousands
|
|
- name: Ansible Test
|
|
hosts: all
|
|
become: yes
|
|
vars:
|
|
docker_full: false
|
|
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"
|
|
#armcpu_check: false
|
|
#AUTH_API_KEY: hellothere
|
|
#fprint_sensor: duybluey
|
|
#ultimaker_cura_url: "https://ultimaker.com/software/ultimaker-cura/"
|
|
#rename_host: false
|
|
#reset_user: true
|
|
#config_smb: false
|
|
#terse_packages: false
|
|
#install_packages: false
|
|
#build_iso: false
|
|
#ding_api: true
|
|
#refresh_special: false
|
|
#create_data_dir: true
|
|
#python_packages:
|
|
#- python3
|
|
#- python3-pip
|
|
#- python3-dev
|
|
#- python3-setuptools
|
|
#- python3-venv
|
|
#kiosk_service_templates:
|
|
# - chrome_website: "http://172.20.6.27:8081"
|
|
# service_name: user_stream_control
|
|
# service_description: "VCR Capture User Stream Control"
|
|
# extra_service_configs: ""
|
|
# user_data_dir: "/opt/chrome/one"
|
|
# extra_chrome_configs: |
|
|
# --window-size="470,1080" \
|
|
# --user-data-dir=/opt/chrome/one \
|
|
# - chrome_website: "http://172.20.6.27:8888/stream"
|
|
# service_name: stream_preview
|
|
# service_description: "VCR Capture Preview Stream"
|
|
# extra_service_configs: ""
|
|
# user_data_dir: "/opt/chrome/two"
|
|
# extra_chrome_configs: |
|
|
# --window-size="1440,1080" \
|
|
# --user-data-dir=/opt/chrome/two \
|
|
# --window-position="480,0" \
|
|
|
|
|
|
roles:
|
|
- docker_workstation
|
|
|
|
|
|
# tasks:
|
|
# - name: show user vars
|
|
# debug:
|
|
# msg:
|
|
# - "User email:"
|
|
# - "{{ jenkins_user}}"
|
|
# - "Jenkins Group:"
|
|
# - "{{ jenkins_group}}"
|
|
# - "SERVER_SUBNET_GROUP:"
|
|
# - "{{ SERVER_SUBNET_GROUP }}"
|
|
# - "subnet_group_check:"
|
|
# - "{{ subnet_group_check }}"
|
|
# - "Host IP:"
|
|
# - "{{ ansible_ssh_host }}"
|
|
|
|
|
|
# - name: test tempate
|
|
# template:
|
|
# src: test.j2
|
|
# dest: "/opt/cosmos/test-template.conf"
|
|
# mode: 0644
|
|
|
|
|
|
# - name: 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.stdout_lines[0] }}
|
|
|
|
|
|
|
|
|
|
#
|
|
# - 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
|
|
|
|
|
|
# - name: docker nvidia
|
|
# include_tasks: /var/jenkins_home/ansible/roles/nvidia_drivers/tasks/docker.yaml
|
|
|
|
|
|
... |