From d0cf6a6d5a41caad5daa9a5c26bcba30d531b46c Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Sat, 17 Jan 2026 18:00:31 +0100 Subject: Add task to show the output of dotfile setup script for debugging --- group_vars/all.yml | Bin 4655 -> 4273 bytes group_vars/all.yml.example | 8 +------- roles/dotfiles/tasks/main.yml | 8 ++++++++ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/group_vars/all.yml b/group_vars/all.yml index 9e7970fa..a2e1f0c6 100644 Binary files a/group_vars/all.yml and b/group_vars/all.yml differ diff --git a/group_vars/all.yml.example b/group_vars/all.yml.example index 7d204bd8..bf2eb820 100644 --- a/group_vars/all.yml.example +++ b/group_vars/all.yml.example @@ -45,18 +45,12 @@ dotfiles_repo_url: "https://git.sr.ht/~a14m/.rc" dotfiles_setup_script: | set -e - rm -f ~/.bash_profile + rm -f ~/.bash_profile ~/.bashrc cd ~/.rc stow --no-folding --adopt . git restore . git remote set-url origin git@git.sr.ht:~a14m/.rc - ln -sf ~/.rc/.gnupg/pinentry-wrapper ~/.local/bin/pinentry-wrapper - envsubst < ~/.gnupg/gpg-agent.conf.template > ~/.gnupg/gpg-agent.conf - chmod 0700 ~/.gnupg - gpgconf --kill gpg-agent 2>/dev/null || true - gpg-connect-agent /bye 2>/dev/null || true - password_store_repo_url: "git@github.com:a14m/.pass" vimrc_repo_url: "git@git.sr.ht:~a14m/.vim" vimrc_setup_script: | diff --git a/roles/dotfiles/tasks/main.yml b/roles/dotfiles/tasks/main.yml index 412b2723..8a8b0210 100644 --- a/roles/dotfiles/tasks/main.yml +++ b/roles/dotfiles/tasks/main.yml @@ -12,7 +12,15 @@ ansible.builtin.shell: cmd: "{{ dotfiles_setup_script }}" executable: "/bin/bash" + register: dotfile_setup changed_when: true tags: # Since the script will report changed every time (even thought it's idempotent) - molecule-idempotence-notest + +- name: "Show dotfile setup output" + ansible.builtin.debug: + var: dotfile_setup.stdout + tags: + # Since this doesn't run on idempotence testing + - molecule-idempotence-notest -- cgit v1.2.3