ansible-desktop/roles/dev-java/tasks/arch.yml

37 lines
1.0 KiB
YAML
Raw Normal View History

2024-05-08 00:22:00 +00:00
- name: "[Arch] install java"
become: yes
community.general.pacman:
name:
- jdk17-openjdk
2024-05-11 00:04:56 +00:00
- name: "[Arch] Download IntelliJ"
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 09:57:48 +00:00
makepkg --noconfirm || true
2024-05-11 00:04:56 +00:00
- 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"
2024-05-08 00:22:00 +00:00
- name: "[Arch] Create symbolic link"
become: yes
file:
src: "/usr/bin/intellij-idea-ultimate-edition"
dest: "/usr/bin/idea"
state: link