src.nth.io/

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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