Update deploy-tws-motd

This commit is contained in:
2026-01-19 20:43:59 -05:00
parent 7d75e46bf1
commit 33463dcd31

View File

@@ -8,14 +8,20 @@
tws_short: "TWS" tws_short: "TWS"
tasks: tasks:
- name: Disable default Ubuntu MOTD noise - name: Check for default Ubuntu MOTD scripts
file: stat:
path: "/etc/update-motd.d/{{ item }}" path: "/etc/update-motd.d/{{ item }}"
mode: "0644"
loop: loop:
- 10-help-text - 10-help-text
- 50-motd-news - 50-motd-news
ignore_errors: true register: motd_scripts
- name: Disable default Ubuntu MOTD noise
file:
path: "{{ item.stat.path }}"
mode: "0644"
loop: "{{ motd_scripts.results }}"
when: item.stat.exists
- name: Deploy TWS MOTD script - name: Deploy TWS MOTD script
copy: copy: