feat(ubuntu): finished up ubuntu desktop setup

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2025-01-24 08:55:45 +01:00
parent 7aab3a2801
commit e3da94c6a5
28 changed files with 328 additions and 208 deletions

View File

@@ -0,0 +1,40 @@
---
- name: Clone Ledger repository
ansible.builtin.git:
repo: "{{ ledger_repo }}"
dest: "{{ ledger_clone_dir }}"
version: master
update: true
register: git_clone
become: true
- name: Run acprep update to configure and build Ledger
ansible.builtin.command: ./acprep update
args:
chdir: "{{ ledger_clone_dir }}"
when: git_clone.changed
become: true
- name: Move the built ledger binary to /usr/bin
ansible.builtin.copy:
src: "{{ ledger_clone_dir }}/ledger"
dest: "{{ ledger_binary_path }}"
mode: "0755"
force: true
become: true
- name: Ensure the ledger binary is executable
ansible.builtin.file:
path: "{{ ledger_binary_path }}"
mode: "0755"
state: file
become: true
- name: Verify Ledger installation
ansible.builtin.command: ledger --version
register: ledger_version
changed_when: false
- name: Display Ledger version
ansible.builtin.debug:
msg: "Ledger version installed: {{ ledger_version.stdout }}"