forked from ohpauleez/clojure-leap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfedora.yml
37 lines (30 loc) · 1.01 KB
/
fedora.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
- hosts: localhost
connection: local
vars:
leap_lib_root: "{{ playbook_dir }}/leap_lib"
leap_unpacked: "{{ leap_lib_root }}/Leap_Motion_Installer_Packages_release_public_linux"
tasks:
- name: install alien
dnf: name=alien state=latest
become: true
become_user: root
ignore_errors: yes
- name: download and unpack leap motion
unarchive: src=https://warehouse.leapmotion.com/apps/4186/download copy=no dest={{ leap_lib_root }}/
ignore_errors: yes
- name: get deb package name
shell: ls *.deb chdir={{ leap_unpacked }}/
register: deb_name
- name: create rpm from deb
command: alien -rv --scripts {{ item }} chdir={{ leap_unpacked }}/
with_items: "{{ deb_name.stdout }}"
become: true
become_user: root
ignore_errors: yes
- name: install rpms
command: rpm -ivh --nodeps --force {{ item }}
with_fileglob: "{{ leap_unpacked }}/*.x86_64.rpm"
become: yes
become_user: root
ignore_errors: yes