diff options
| author | Luke Hoersten <[email protected]> | 2026-07-30 18:19:08 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-07-30 18:19:08 -0500 |
| commit | 60a318263bb345b966e2d8e1ace658464150abf9 (patch) | |
| tree | d546804e9106e9300591cccfd8c3e7dec54fc699 /rpi-base/tasks | |
| parent | 38fa7747e14e5b7ea7270c74152063bd38f29679 (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/tasks')
| -rw-r--r-- | rpi-base/tasks/main.yaml | 5 |
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 |
