2024-05-08 00:22:00 +00:00
|
|
|
- name: "[Arch] install java"
|
2023-10-24 09:48:44 +00:00
|
|
|
become: yes
|
|
|
|
community.general.pacman:
|
|
|
|
name:
|
|
|
|
- jdk17-openjdk
|
|
|
|
|
2024-05-11 00:04:56 +00:00
|
|
|
- name: "[Arch] Download IntelliJ"
|
2023-09-22 18:20:14 +00:00
|
|
|
shell:
|
|
|
|
cmd:
|
2024-05-10 19:44:12 +00:00
|
|
|
yay -Sw --needed --noconfirm intellij-idea-ultimate-edition
|
2024-05-10 19:11:40 +00:00
|
|
|
|
2024-05-11 00:04:56 +00:00
|
|
|
- name: "[Arch] Build IntelliJ"
|
2024-05-10 19:11:40 +00:00
|
|
|
shell:
|
|
|
|
chdir: "{{ ansible_user_dir }}/.cache/yay/intellij-idea-ultimate-edition"
|
|
|
|
cmd:
|
2024-05-11 00:04:56 +00:00
|
|
|
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"
|
2023-10-24 09:48:44 +00:00
|
|
|
|
2024-05-08 00:22:00 +00:00
|
|
|
- name: "[Arch] Create symbolic link"
|
2023-10-24 09:48:44 +00:00
|
|
|
become: yes
|
|
|
|
file:
|
|
|
|
src: "/usr/bin/intellij-idea-ultimate-edition"
|
|
|
|
dest: "/usr/bin/idea"
|
|
|
|
state: link
|