Добавил CentOS
This commit is contained in:
parent
f45c2318c4
commit
cc48cb444c
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user