hakatime
This commit is contained in:
parent
d7542f8350
commit
9ceb41ba29
5 changed files with 23 additions and 0 deletions
|
@ -15,6 +15,10 @@
|
||||||
prompt: "Do you want neovim nightly?"
|
prompt: "Do you want neovim nightly?"
|
||||||
private: no
|
private: no
|
||||||
default: "no"
|
default: "no"
|
||||||
|
- name: _hakatime_api_key
|
||||||
|
prompt: "What's your hakatime api key? (won't show up at the prompt)"
|
||||||
|
private: yes
|
||||||
|
default: ""
|
||||||
tasks:
|
tasks:
|
||||||
- block:
|
- block:
|
||||||
- name: Set dev machine fact
|
- name: Set dev machine fact
|
||||||
|
@ -26,3 +30,6 @@
|
||||||
- name: Set nightly neovim fact
|
- name: Set nightly neovim fact
|
||||||
set_fact:
|
set_fact:
|
||||||
_nightly_neovim: "{{ _nightly_neovim }}"
|
_nightly_neovim: "{{ _nightly_neovim }}"
|
||||||
|
- name: Set Hakatime api key fact
|
||||||
|
set_fact:
|
||||||
|
_hakatime_api_key: "{{ _hakatime_api_key }}"
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
- dev_machine: "{{ _dev_machine }}"
|
- dev_machine: "{{ _dev_machine }}"
|
||||||
- rust_extras: "{{ _rust_extras }}"
|
- rust_extras: "{{ _rust_extras }}"
|
||||||
- nightly_neovim: "{{ _nightly_neovim }}"
|
- nightly_neovim: "{{ _nightly_neovim }}"
|
||||||
|
- hakatime_api_key: "{{ _hakatime_api_key }}"
|
||||||
|
|
||||||
- hosts: os_Fedora
|
- hosts: os_Fedora
|
||||||
gather_facts: True
|
gather_facts: True
|
||||||
|
@ -32,6 +33,7 @@
|
||||||
- dev_machine: "{{ _dev_machine }}"
|
- dev_machine: "{{ _dev_machine }}"
|
||||||
- rust_extras: "{{ _rust_extras }}"
|
- rust_extras: "{{ _rust_extras }}"
|
||||||
- nightly_neovim: "{{ _nightly_neovim }}"
|
- nightly_neovim: "{{ _nightly_neovim }}"
|
||||||
|
- hakatime_api_key: "{{ _hakatime_api_key }}"
|
||||||
|
|
||||||
- hosts: os_Archlinux
|
- hosts: os_Archlinux
|
||||||
gather_facts: True
|
gather_facts: True
|
||||||
|
@ -44,6 +46,7 @@
|
||||||
- dev_machine: "{{ _dev_machine }}"
|
- dev_machine: "{{ _dev_machine }}"
|
||||||
- rust_extras: "{{ _rust_extras }}"
|
- rust_extras: "{{ _rust_extras }}"
|
||||||
- nightly_neovim: "{{ _nightly_neovim }}"
|
- nightly_neovim: "{{ _nightly_neovim }}"
|
||||||
|
- hakatime_api_key: "{{ _hakatime_api_key }}"
|
||||||
|
|
||||||
- hosts: os_Ubuntu
|
- hosts: os_Ubuntu
|
||||||
gather_facts: False
|
gather_facts: False
|
||||||
|
@ -56,6 +59,7 @@
|
||||||
- dev_machine: "{{ _dev_machine }}"
|
- dev_machine: "{{ _dev_machine }}"
|
||||||
- rust_extras: "{{ _rust_extras }}"
|
- rust_extras: "{{ _rust_extras }}"
|
||||||
- nightly_neovim: "{{ _nightly_neovim }}"
|
- nightly_neovim: "{{ _nightly_neovim }}"
|
||||||
|
- hakatime_api_key: "{{ _hakatime_api_key }}"
|
||||||
|
|
||||||
- hosts: os_openSUSE*
|
- hosts: os_openSUSE*
|
||||||
gather_facts: True
|
gather_facts: True
|
||||||
|
@ -68,4 +72,5 @@
|
||||||
- dev_machine: "{{ _dev_machine }}"
|
- dev_machine: "{{ _dev_machine }}"
|
||||||
- rust_extras: "{{ _rust_extras }}"
|
- rust_extras: "{{ _rust_extras }}"
|
||||||
- nightly_neovim: "{{ _nightly_neovim }}"
|
- nightly_neovim: "{{ _nightly_neovim }}"
|
||||||
|
- hakatime_api_key: "{{ _hakatime_api_key }}"
|
||||||
|
|
||||||
|
|
|
@ -45,3 +45,10 @@
|
||||||
file:
|
file:
|
||||||
path: ~/bin
|
path: ~/bin
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
|
- name: Lay down wakatime.cfg
|
||||||
|
when:
|
||||||
|
- hakatime_api_key != ''
|
||||||
|
template:
|
||||||
|
src: wakatime.cfg.j2
|
||||||
|
dest: ~/.wakatime.cfg
|
||||||
|
|
3
playbooks/roles/common/templates/wakatime.cfg.j2
Normal file
3
playbooks/roles/common/templates/wakatime.cfg.j2
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[settings]
|
||||||
|
api_key={{ hakatime_api_key }}
|
||||||
|
api_url=https://hakatime.anthonycicchetti.com/api/v1/users/current/heartbeats.bulk
|
|
@ -84,6 +84,7 @@ function nv() {
|
||||||
|
|
||||||
path+=($HOME/.anyenv/bin)
|
path+=($HOME/.anyenv/bin)
|
||||||
eval "$(anyenv init -)"
|
eval "$(anyenv init -)"
|
||||||
|
path+=($(yarn global bin))
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
|
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
|
||||||
|
|
Loading…
Add table
Reference in a new issue