Fix installing IntelliJ

This commit is contained in:
Przemek Grondek 2024-05-11 02:04:56 +02:00
parent 65aec1ed8b
commit 8cdd185e09

View File

@ -4,17 +4,29 @@
name:
- jdk17-openjdk
- name: "[Arch] Build pkgs IntelliJ"
- name: "[Arch] Download IntelliJ"
shell:
cmd:
yay -Sw --needed --noconfirm intellij-idea-ultimate-edition
- name: "[Arch] Install IntelliJ"
become: yes
- name: "[Arch] Build IntelliJ"
shell:
chdir: "{{ ansible_user_dir }}/.cache/yay/intellij-idea-ultimate-edition"
cmd:
makepkg -i --noconfirm
makepkg --noconfirm
- name: "[Arch] Query version"
shell:
cmd:
yay -Ss intellij-idea-ultimate-edition | head -1 | awk '{print $2}'
register: version
- name: "[Arch] Install IntelliJ"
become: yes
community.general.pacman:
name:
- "{{ ansible_user_dir }}/.cache/yay/intellij-idea-ultimate-edition/intellij-idea-ultimate-edition-{{ version.stdout }}-x86_64.pkg.tar.zst"
- "{{ ansible_user_dir }}/.cache/yay/intellij-idea-ultimate-edition/intellij-idea-ultimate-edition-jre-{{ version.stdout }}-x86_64.pkg.tar.zst"
- name: "[Arch] Create symbolic link"
become: yes