Добавил CentOS

This commit is contained in:
Lulzette 2021-10-21 18:07:47 +00:00
parent f45c2318c4
commit cc48cb444c

View File

@ -1,6 +1,21 @@
--- ---
- name: Install packages - name: Install Debian packages
apt: apt:
name: ['mc', 'htop', 'vim', 'screen', 'tmux', 'curl', 'wget', 'bash-completion'] name: ['mc', 'htop', 'vim', 'screen', 'tmux', 'curl', 'wget', 'bash-completion']
state: present state: present
update_cache: yes
when: ansible_facts['os_family'] == "Debian" 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"