From 60a318263bb345b966e2d8e1ace658464150abf9 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Thu, 30 Jul 2026 18:19:08 -0500 Subject: rpi-base: skip terminfo sync when the controller TERM has no entry infocmp fails when ansible runs from a terminal without a compiled terminfo entry (e.g. emacs eshell, TERM=emacs); treat that as skip instead of failing the play. --- rpi-base/tasks/main.yaml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rpi-base/tasks/main.yaml') diff --git a/rpi-base/tasks/main.yaml b/rpi-base/tasks/main.yaml index 9be6aad..2e321d2 100644 --- a/rpi-base/tasks/main.yaml +++ b/rpi-base/tasks/main.yaml @@ -96,11 +96,15 @@ become: yes systemd: name="log2ram.service" enabled="yes" state="started" +# Push the controller's terminal type to the host so ssh sessions work from +# niche terminals. Skipped when the controller has no terminfo entry for the +# current TERM (e.g. running ansible from emacs eshell, TERM=emacs). - name: get local terminfo command: infocmp delegate_to: localhost register: terminfo changed_when: false + failed_when: false - name: install local terminfo on host become: yes @@ -108,3 +112,4 @@ args: stdin: "{{terminfo.stdout}}" changed_when: false + when: terminfo.rc == 0 -- cgit v1.2.3