Fix motd task for armbian
This commit is contained in:
parent
9bbec96481
commit
d8b0857bb5
@ -1,8 +1,15 @@
|
|||||||
---
|
---
|
||||||
- become: yes
|
- become: yes
|
||||||
block:
|
block:
|
||||||
|
- name: check if help in motd exists
|
||||||
|
stat:
|
||||||
|
path: /etc/update-motd.d/10-help-text
|
||||||
|
register: stat_result
|
||||||
|
|
||||||
- name: disable help in ubuntu
|
- name: disable help in ubuntu
|
||||||
when: ansible_distribution == "Ubuntu"
|
when:
|
||||||
|
- ansible_distribution == "Ubuntu"
|
||||||
|
- stat_result.stat.exists
|
||||||
file:
|
file:
|
||||||
path: /etc/update-motd.d/10-help-text
|
path: /etc/update-motd.d/10-help-text
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
Loading…
Reference in New Issue
Block a user