Remove/add more pkgs
This commit is contained in:
parent
583f5fee4f
commit
2fd6a9ef20
@ -1,4 +1,4 @@
|
|||||||
- name: Make initramfs
|
- name: Make initramfs
|
||||||
ansible.builtin.command:
|
shell:
|
||||||
cmd: update-initramfs -u
|
cmd: update-initramfs -u
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -1,17 +1,24 @@
|
|||||||
---
|
---
|
||||||
- name: Install Debian packages
|
- name: Install Debian packages
|
||||||
apt:
|
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
|
state: present
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
when: ansible_facts['os_family'] == "Debian"
|
when: ansible_facts['os_family'] == "Debian"
|
||||||
|
|
||||||
|
|
||||||
- name: Remove Ubuntu packages
|
- name: Remove Ubuntu packages
|
||||||
apt:
|
apt:
|
||||||
name: ['cloud-init', 'modemmanager', 'snapd']
|
name: ['cloud-init', 'modemmanager', 'snapd', 'modemmanager']
|
||||||
state: absent
|
state: absent
|
||||||
when: ansible_facts['os_family'] == "Debian"
|
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
|
- name: Less modules in initramfs
|
||||||
ansible.builtin.replace:
|
ansible.builtin.replace:
|
||||||
path: /etc/initramfs-tools/initramfs.conf
|
path: /etc/initramfs-tools/initramfs.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user