Remove/add more pkgs

This commit is contained in:
lulzette 2022-10-19 19:30:26 +00:00
parent 583f5fee4f
commit 2fd6a9ef20
2 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,4 @@
- name: Make initramfs
ansible.builtin.command:
shell:
cmd: update-initramfs -u
become: yes

View File

@ -1,17 +1,24 @@
---
- name: Install Debian packages
apt:
name: ['mc', 'htop', 'vim', 'screen', 'tmux', 'curl', 'wget', 'bash-completion', 'tree', 'figlet']
name: ['mc', 'htop', 'vim', 'neovim', 'screen', 'tmux', 'curl', 'wget', 'bash-completion', 'tree', 'figlet']
state: present
update_cache: yes
when: ansible_facts['os_family'] == "Debian"
- name: Remove Ubuntu packages
apt:
name: ['cloud-init', 'modemmanager', 'snapd']
name: ['cloud-init', 'modemmanager', 'snapd', 'modemmanager']
state: absent
when: ansible_facts['os_family'] == "Debian"
- name: Remove orphans
apt:
autoremove: yes
purge: yes
when: ansible_facts['os_family'] == "Debian"
- name: Less modules in initramfs
ansible.builtin.replace:
path: /etc/initramfs-tools/initramfs.conf