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: name:
- jdk17-openjdk - jdk17-openjdk
- name: "[Arch] Build pkgs IntelliJ" - name: "[Arch] Download IntelliJ"
shell: shell:
cmd: cmd:
yay -Sw --needed --noconfirm intellij-idea-ultimate-edition yay -Sw --needed --noconfirm intellij-idea-ultimate-edition
- name: "[Arch] Install IntelliJ" - name: "[Arch] Build IntelliJ"
become: yes
shell: shell:
chdir: "{{ ansible_user_dir }}/.cache/yay/intellij-idea-ultimate-edition" chdir: "{{ ansible_user_dir }}/.cache/yay/intellij-idea-ultimate-edition"
cmd: 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" - name: "[Arch] Create symbolic link"
become: yes become: yes