refactor(lint,fqdn-names): Full FQDN names for modules

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2025-01-22 00:06:35 +01:00
parent 87fb4fa5da
commit 71532a6d25
15 changed files with 107 additions and 85 deletions

View File

@@ -1,28 +1,28 @@
---
- name: Get OS release info
shell: source /etc/os-release && echo $VERSION_ID
ansible.builtin.shell: source /etc/os-release && echo $VERSION_ID
register: version_id
changed_when: false
- name: Get Ghostty DEB URL
shell: |
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"
register: ghostty_deb_url
changed_when: false
- name: Download Ghostty deb file
get_url:
ansible.builtin.get_url:
url: "{{ ghostty_deb_url.stdout }}"
dest: "/tmp/{{ ghostty_deb_url.stdout | basename }}"
mode: "0755"
- name: Install Ghostty
apt:
ansible.builtin.apt:
deb: "/tmp/{{ ghostty_deb_url.stdout | basename }}"
state: present
- name: Remove Ghostty deb file
file:
ansible.builtin.file:
path: "/tmp/{{ ghostty_deb_url.stdout | basename }}"
state: absent