feat(ubuntu): finished up ubuntu desktop setup
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
---
|
||||
- name: Get OS release info
|
||||
ansible.builtin.shell: source /etc/os-release && echo $VERSION_ID
|
||||
args:
|
||||
executable: /bin/bash
|
||||
register: version_id
|
||||
changed_when: false
|
||||
|
||||
- name: Get Ghostty DEB URL
|
||||
ansible.builtin.shell: |
|
||||
curl -s https://api.github.com/repos/mkasberg/ghostty-ubuntu/releases/latest |
|
||||
grep -oP "https://github.com/mkasberg/ghostty-ubuntu/releases/download/[^\s/]+/ghostty_[^\s/_]+_amd64_{{ version_id.stdout }}.deb"
|
||||
grep -oP "https://github.com/mkasberg/ghostty-ubuntu/releases/download/[^\s/]+/ghostty_[^\s/_]+_{{ aarch }}_{{ version_id.stdout }}.deb"
|
||||
register: ghostty_deb_url
|
||||
changed_when: false
|
||||
|
||||
@@ -21,6 +23,7 @@
|
||||
ansible.builtin.apt:
|
||||
deb: "/tmp/{{ ghostty_deb_url.stdout | basename }}"
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Remove Ghostty deb file
|
||||
ansible.builtin.file:
|
||||
|
||||
Reference in New Issue
Block a user