Add cleanup playbook for ubuntu hosts
This commit is contained in:
parent
158734c208
commit
066c870389
20
server/cleanup.yml
Normal file
20
server/cleanup.yml
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: cleanup ubuntu
|
||||
hosts: server
|
||||
become_method: sudo
|
||||
become_user: root
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
- name: clean packages
|
||||
apt:
|
||||
pkg:
|
||||
- snapd
|
||||
- cloud-init
|
||||
- lxd
|
||||
- lxd-client
|
||||
state: absent
|
||||
- name: disable ubuntu ads
|
||||
copy:
|
||||
src: etc/default/motd-news
|
||||
dest: /etc/default/motd-news
|
19
server/etc/default/motd-news
Normal file
19
server/etc/default/motd-news
Normal file
@ -0,0 +1,19 @@
|
||||
# Enable/disable the dynamic MOTD news service
|
||||
# This is a useful way to provide dynamic, informative
|
||||
# information pertinent to the users and administrators
|
||||
# of the local system
|
||||
ENABLED=0
|
||||
|
||||
# Configure the source of dynamic MOTD news
|
||||
# White space separated list of 0 to many news services
|
||||
# For security reasons, these must be https
|
||||
# and have a valid certificate
|
||||
# Canonical runs a service at motd.ubuntu.com, and you
|
||||
# can easily run one too
|
||||
URLS="https://motd.ubuntu.com"
|
||||
|
||||
# Specify the time in seconds, you're willing to wait for
|
||||
# dynamic MOTD news
|
||||
# Note that news messages are fetched in the background by
|
||||
# a systemd timer, so this should never block boot or login
|
||||
WAIT=5
|
Loading…
Reference in New Issue
Block a user