Skip to content

Instantly share code, notes, and snippets.

@emaxerrno
Created December 14, 2018 15:43
Show Gist options
  • Save emaxerrno/480e7ad7cef3c1199d53c635a955049f to your computer and use it in GitHub Desktop.
Save emaxerrno/480e7ad7cef3c1199d53c635a955049f to your computer and use it in GitHub Desktop.
hotspot.yml
---
- name: redhat
when: ansible_os_family == "RedHat"
become: yes
dnf: name='{{item}}'
with_items:
- cmake
- gcc
- glibc-static
- gcc-c++
- libstdc++-static
- qt5
- qt5-devel
- extra-cmake-modules
- elfutils-devel
- kf5-threadweaver-devel
- kf5-ki18n-devel
- kf5-kconfigwidgets-devel
- kf5-kitemviews-devel
- kf5-kitemmodels-devel
- kf5-kio-devel
- kf5-solid-devel
- kf5-kwindowsystem-devel
- name: use ppa
become: yes
when: ansible_os_family == "Debian"
apt_repository:
repo: "{{item}}"
state: present
with_items:
- "ppa:kubuntu-ppa/backports"
- name: ubuntu
when: ansible_os_family == "Debian"
become: yes
apt: name='{{item}}'
with_items:
- libkf5threadweaver-dev
- libkf5i18n-dev
- libkf5configwidgets-dev
- libkf5coreaddons-dev
- libkf5itemviews-dev
- libkf5itemmodels-dev
- libkf5kio-dev
- libkf5solid-dev
- libkf5windowsystem-dev
- libelf-dev
- libdw-dev
- cmake
- extra-cmake-modules
- gettext
- name: download spacemacs to .hotspot
when: ansible_system == "Linux"
git:
repo='https://github.com/KDAB/hotspot.git'
accept_hostkey=yes
clone=yes
dest='~/.hotspot'
update=no
recursive=yes
force=yes
version='3016e68'
- name: install
when: ansible_system == "Linux"
shell: |
mkdir build
cd build
cmake ~/.hotspot
make -j$(grep -c ^processor /proc/cpuinfo)
args:
warn: no
chdir: ~/.hotspot
creates: ~/.hotspot/build/bin/hotspot
- name: symlinks
when: ansible_system == "Linux"
file:
src: "~/.hotspot/build/bin/hotspot"
dest: "~/bin/hotspot"
state: link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment