- Update registered artifact names

- Add camel lsp installation
main
Nils Gerstner 1 year ago
parent 3a49358b99
commit 31f359bbc3

@ -43,6 +43,7 @@
# - include: tasks/lsp.yml
- include: tasks/golang-setup.yml
- include: tasks/java-setup.yml
- include: tasks/camel-setup.yml
- include: tasks/node-setup.yml
- include: tasks/deno-setup.yml
- include: tasks/kubernetes.yml

@ -0,0 +1,19 @@
- name: Get url to latest Camel LSP release
register: camel_release_response
tags:
- install
- productivity
- camel
uri:
return_content: true
url: https://api.github.com/repos/camel-tooling/camel-language-server/releases/latest
- get_url:
dest: "/opt/camel-lsp-server.jar"
mode: '777'
url: "https://repo1.maven.org/maven2/com/github/camel-tooling/camel-lsp-server/{{ camel_release_response.json.tag_name }}/camel-lsp-server-{{ camel_release_response.json.tag_name }}.jar"
name: Download Camel LSP Server
tags:
- install
- productivity
- camel

@ -11,7 +11,7 @@
mode: '777'
url: https://deno.land/x/install/install.sh
name: Download deno install script
register: denoinstall
register: deno_download
tags:
- install
- notes
@ -24,5 +24,5 @@
- install
- deno
- productivity
when: denoinstall.changed
when: deno_download.changed

@ -12,7 +12,7 @@
- become: true
become_user: "{{my_user}}"
name: Check if already stowed
register: st
register: stowed
stat:
path: "/home/{{my_user}}/.stowed"
tags:
@ -29,7 +29,7 @@
# #- /tmp/main.zip
# #- "/home/{{my_user}}/dotfiles"
#
# # when: st.stat.islnk is not defined
# # when: stow.stat.islnk is not defined
# name: Remove existing .bashrc and dotfolder from home #become: true
# #become_user: "{{my_user}}"
# tags:
@ -49,7 +49,7 @@
# - install
# - dotfiles
# - productivity
# when: st.stat.islnk is not defined
# when: stow.stat.islnk is not defined
#
# # - name: Move dotfiles to dest folder
# # ansible.builtin.copy:
@ -76,7 +76,7 @@
# - install
# - dotfiles
# - productivity
# when: st.stat.islnk is not defined
# when: stow.stat.islnk is not defined
#
# - ansible.builtin.lineinfile:
# line: ENVIRONMENT=PROD

@ -56,7 +56,7 @@
update: true
# version: 'stable'
name: Clone lazygit
register: lazygitclone
register: lazygit_clone
tags:
- install
- git
@ -67,4 +67,4 @@
- install
- git
- golang
when: lazygitclone.changed
when: lazygit_clone.changed

@ -6,35 +6,39 @@
- install
- productivity
- java
- camel
- name: Get Java java alternative
register: javaversion
register: java_version
shell: "update-alternatives --list java |grep -m1 '^/.*/java-17-openjdk.*/java$'"
tags:
- install
- productivity
- java
- camel
- name: Set java version
shell: "update-alternatives --set java {{javaversion.stdout }}"
shell: "update-alternatives --set java {{java_version.stdout }}"
tags:
- install
- productivity
- java
when: javaversion is defined
- camel
when: java_version is defined
- become: true
become_user: "{{my_user}}"
name: Get JAVA_HOME for current version
register: javahome
register: java_home
shell: 'dirname $(dirname $(readlink -f $(which javac)))'
tags:
- install
- productivity
- java
- camel
- ansible.builtin.lineinfile:
line: export JAVA_HOME={{ javahome.stdout }}
line: export JAVA_HOME={{ java_home.stdout }}
path: ~/.bashrc
regexp: '^\s*export *JAVA_HOME=.*$'
become: true
@ -44,5 +48,6 @@
- install
- productivity
- java
when: javahome is defined
- camel
when: java_home is defined
# JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"

@ -17,14 +17,14 @@
repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main"
state: present
name: Add Helm repository
register: helmrepo
register: helm_repo
tags:
- kubernetes
- ansible.builtin.apt_repository:
repo: "deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main"
state: present
name: Add Kubernetes repository
register: kubernetesrepo
register: kubernetes_repo
tags:
- kubernetes
- apt:
@ -35,7 +35,7 @@
name: Update apt repositories
tags:
- kubernetes
when: helmrepo.changed or kubernetesrepo.changed
when: helm_repo.changed or kubernetes_repo.changed
- apt:
name:
[

@ -5,7 +5,7 @@
update: true
version: 'stable'
name: Clone Neovim
register: gitclone
register: neovim_clone
tags:
- install
- neovim
@ -16,7 +16,7 @@
tags:
- install
- neovim
when: gitclone.changed
when: neovim_clone.changed
- ansible.builtin.file:
path: "{{ lookup('env', 'HOME') }}/neovim/build"
state: absent
@ -29,14 +29,14 @@
tags:
- install
- neovim
when: gitclone.changed
when: neovim_clone.changed
- become: true
name: Install neovim
shell: "cd {{ lookup('env', 'HOME') }}/neovim && make install"
tags:
- install
- neovim
when: gitclone.changed
when: neovim_clone.changed
- apt: name=luarocks
become: true
name: Neovim Plugin Development 1
@ -64,10 +64,10 @@
tags:
- install
- neovim
when: gitclone.changed
when: neovim_clone.changed
- name: Neovim TSUpdate
shell: "nvim --headless '+TSUpdateSync clean' '+q'"
tags:
- install
- neovim
when: gitclone.changed
when: neovim_clone.changed

Loading…
Cancel
Save