src.nth.io/

summaryrefslogtreecommitdiff
path: root/rpi-base
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-07-30 18:19:08 -0500
committerLuke Hoersten <[email protected]>2026-07-30 18:19:08 -0500
commit60a318263bb345b966e2d8e1ace658464150abf9 (patch)
treed546804e9106e9300591cccfd8c3e7dec54fc699 /rpi-base
parent38fa7747e14e5b7ea7270c74152063bd38f29679 (diff)
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.
Diffstat (limited to 'rpi-base')
-rw-r--r--rpi-base/tasks/main.yaml5
1 files changed, 5 insertions, 0 deletions
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