Fix motd task for armbian

This commit is contained in:
Przemek Grondek 2023-05-28 00:13:01 +02:00
parent 9bbec96481
commit d8b0857bb5

View File

@ -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'