From 4e71b7810903ca4bc472e6f79837d8e50cbbf865 Mon Sep 17 00:00:00 2001 From: mg Date: Fri, 18 Feb 2022 20:36:10 +0100 Subject: [PATCH] Bugfix: motd: force update (#330) Co-authored-by: Michael Grote Reviewed-on: https://git.mgrote.net/mg/ansible/pulls/330 Co-authored-by: mg Co-committed-by: mg --- roles/mgrote.motd/handlers/main.yml | 4 ---- roles/mgrote.motd/tasks/base.yml | 4 ---- roles/mgrote.motd/tasks/fortune.yml | 1 - roles/mgrote.motd/tasks/weather.yml | 1 - 4 files changed, 10 deletions(-) diff --git a/roles/mgrote.motd/handlers/main.yml b/roles/mgrote.motd/handlers/main.yml index d73eb213..c3eb3398 100644 --- a/roles/mgrote.motd/handlers/main.yml +++ b/roles/mgrote.motd/handlers/main.yml @@ -1,8 +1,4 @@ --- - - name: force update - become: yes - command: update-motd - - name: restart_sshd become: yes systemd: diff --git a/roles/mgrote.motd/tasks/base.yml b/roles/mgrote.motd/tasks/base.yml index 9cd148de..a0429a0e 100644 --- a/roles/mgrote.motd/tasks/base.yml +++ b/roles/mgrote.motd/tasks/base.yml @@ -34,7 +34,6 @@ - 91-reboot - 90-updates-available - 91-release-upgrade - notify: force update - name: delete "no warranty" - Message become: yes @@ -55,7 +54,6 @@ - 20-facts-mgrote - 90-updates-mgrote - 91-reboot-mgrote - notify: force update - name: delete fortune become: yes @@ -63,7 +61,6 @@ path: /etc/update-motd.d/05-fortune-mgrote state: absent when: not motd_fortune_aktiv - notify: force update - name: delete Wetter become: yes @@ -71,4 +68,3 @@ path: '/etc/update-motd.d/10-wetter-mgrote' state: absent when: not motd_wetter_aktiv - notify: force update diff --git a/roles/mgrote.motd/tasks/fortune.yml b/roles/mgrote.motd/tasks/fortune.yml index 26c6db55..3547f27b 100644 --- a/roles/mgrote.motd/tasks/fortune.yml +++ b/roles/mgrote.motd/tasks/fortune.yml @@ -14,4 +14,3 @@ owner: root group: root mode: '755' - notify: force update diff --git a/roles/mgrote.motd/tasks/weather.yml b/roles/mgrote.motd/tasks/weather.yml index d5db24cc..eea72ea6 100644 --- a/roles/mgrote.motd/tasks/weather.yml +++ b/roles/mgrote.motd/tasks/weather.yml @@ -6,4 +6,3 @@ owner: root group: root mode: '755' - notify: force update