diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-01-17 18:00:31 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-01-19 10:31:02 +0100 |
| commit | d0cf6a6d5a41caad5daa9a5c26bcba30d531b46c (patch) | |
| tree | d42e54813abb8bf387f042a24e728efb5471c8cc | |
| parent | 8344864c8fea0f73e3531ea36d6790f0f3e69599 (diff) | |
Add task to show the output of dotfile setup script for debugging
| -rw-r--r-- | group_vars/all.yml | bin | 4655 -> 4273 bytes | |||
| -rw-r--r-- | group_vars/all.yml.example | 8 | ||||
| -rw-r--r-- | 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 Binary files differindex 9e7970fa..a2e1f0c6 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml 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 [email protected]:~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: "[email protected]:a14m/.pass" vimrc_repo_url: "[email protected]:~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 |
