22 lines
612 B
YAML
22 lines
612 B
YAML
---
|
|
- name: Install Debian packages
|
|
apt:
|
|
name: ['mc', 'htop', 'vim', 'screen', 'tmux', 'curl', 'wget', 'bash-completion']
|
|
state: present
|
|
update_cache: yes
|
|
when: ansible_facts['os_family'] == "Debian"
|
|
|
|
- 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"
|