Update deploy-tws-motd
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user