base-system/roles/packages/tasks/main.yml

28 lines
766 B
YAML
Raw Normal View History

2022-04-11 15:20:12 +03:00
---
- name: Install Debian packages
apt:
name: ['mc', 'htop', 'vim', 'screen', 'tmux', 'curl', 'wget', 'bash-completion', 'tree', 'figlet']
state: present
update_cache: yes
when: ansible_facts['os_family'] == "Debian"
2022-10-19 19:11:27 +03:00
- name: Remove Ubuntu packages
apt:
name: ['cloud-init', 'modemmanager', 'snapd']
state: absent
when: ansible_facts['os_family'] == "Debian"
2022-04-11 15:20:12 +03:00
- name: Install CentOS epel
yum:
name: 'epel-release'
update_cache: yes
state: present
when: ansible_facts['os_family'] == "RedHat"
- name: Install RedHat packages
yum:
name: ['epel-release', 'mc', 'htop', 'vim', 'screen', 'tmux', 'curl', 'wget', 'bash-completion']
update_cache: yes
state: present
when: ansible_facts['os_family'] == "RedHat"