From 7b331bc7d9011f0b1a64abac928b4eaa8e3ab0a3 Mon Sep 17 00:00:00 2001 From: mg Date: Tue, 22 Jun 2021 14:09:51 +0200 Subject: [PATCH] motd: remove default packages (#126) motd: remove default packages Co-authored-by: Michael Grote Reviewed-on: https://git.mgrote.net/mg/ansible/pulls/126 Co-Authored-By: mg Co-Committed-By: mg --- roles/mgrote.motd/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/mgrote.motd/tasks/main.yml b/roles/mgrote.motd/tasks/main.yml index 953c2019..4d524d5f 100644 --- a/roles/mgrote.motd/tasks/main.yml +++ b/roles/mgrote.motd/tasks/main.yml @@ -15,6 +15,14 @@ state: present when: ansible_facts['os_family'] == "Ubuntu" + - name: remove default packages + become: yes + ansible.builtin.package: + name: + - motd-news-config + state: absent + when: ansible_facts['os_family'] == "Ubuntu" + - name: 'remove unwanted motd messages' become: yes ansible.builtin.file: