ansible_public/playbooks/installers/install_saleae.yaml
2022-06-14 18:53:16 +02:00

42 lines
1.1 KiB
YAML

---
- hosts: "{{ variable_host | default(lab15_standard) }}"
gather_facts: no
become: yes
tasks:
- name: Download saleae bin
get_url:
url: https://logic2api.saleae.com/download?os=linux
dest: /usr/local/bin/saleae
mode: '0755'
- name: Create new file
file:
path: /etc/udev/rules.d/99-SaleaeLogic.rules
state: touch
mode: '0644'
- name: rm old rules
shell: rm /etc/udev/rules.d/99-SaleaeLogic.rules
- name: Copy new rules
get_url:
url: https://denali.kcir.pwr.edu.pl/~jdelicat/files/99-SaleaeLogic.rules
dest: /etc/udev/rules.d/99-SaleaeLogic.rules
mode: '0644'
- name: Reload udev
shell: udevadm control --reload-rules
- name: make icon to gnome
shell: printf '[Desktop Entry]\n
Version=1.0\n
Type=Application\n
Terminal=false\n
Exec=saleae\n
Name=saleae\n
Icon=saleae\n
Categories=Development\n
Comment=Scientific computing environment\n
StartupNotify=true\n ' > /usr/share/applications/saleae.desktop