Skip to content

Commit

Permalink
Truncate motd file on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
atsikham committed Oct 18, 2021
1 parent c353ee3 commit 26013a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ansible/playbooks/roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@
changed_when: false
when: ansible_selinux is defined and ansible_selinux != False and ansible_selinux.status == 'enabled'

# Before version 1.3 Epiphany updated /etc/motd file, so this task is necessary for upgrades
# Can be removed after 1.2 deprecation
- name: Clean up /etc/motd file
copy:
dest: /etc/motd
content: ""
force: true

# motd is not used as Ubuntu has its own update-motd framework for dynamic motd generation
# while for RedHat there is only /etc/motd that doesn't support simple configuration for colored output
- name: Configure login message
Expand Down

0 comments on commit 26013a7

Please sign in to comment.