forked from ISTI-ansible-roles/ansible-roles
Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
Andrea Dell'Amico | 49b9e57de1 | |
Andrea Dell'Amico | d13a91f329 | |
Andrea Dell'Amico | 83ca5b7751 | |
Andrea Dell'Amico | 4d0b9440c6 | |
Tommaso Piccioli | 8392b03626 |
|
@ -9,17 +9,27 @@ dns1: 208.67.220.220
|
|||
dns2: 208.67.222.222
|
||||
configure_domain_name_in_interface: False
|
||||
|
||||
el_yum_automation: True
|
||||
centos7_packages_automation:
|
||||
- yum-cron
|
||||
- yum-plugin-fastestmirror
|
||||
|
||||
el_dnf_automation: False
|
||||
centos8_packages_automation:
|
||||
- dnf-automatic
|
||||
|
||||
centos7_packages_to_install:
|
||||
- policycoreutils-python
|
||||
centos8_packages_to_install:
|
||||
- policycoreutils-python-utils
|
||||
centos_packages_to_install:
|
||||
- dstat
|
||||
- lsof
|
||||
- strace
|
||||
- traceroute
|
||||
- bind-utils
|
||||
- yum-cron
|
||||
- yum-plugin-fastestmirror
|
||||
- whois
|
||||
- iotop
|
||||
- policycoreutils-python
|
||||
- firewalld
|
||||
- ipset
|
||||
- psmisc
|
||||
|
|
|
@ -1,8 +1,42 @@
|
|||
---
|
||||
- name: Install the basic packages
|
||||
- name: Install the basic packages commont to CentOS 7 and 8+
|
||||
yum: name={{ centos_packages_to_install }} state={{ centos_pkg_state }}
|
||||
tags: [ 'centos', 'bootstrap', 'packages' ]
|
||||
|
||||
- name: Install CentOS 7 packages
|
||||
yum:
|
||||
pkg: '{{ centos7_packages_to_install }}'
|
||||
state: present
|
||||
when:
|
||||
- ansible_distribution_file_variety == "RedHat"
|
||||
- ansible_distribution_major_version is version_compare('7', '<=')
|
||||
|
||||
- name: Install CentOS 8 packages
|
||||
dnf:
|
||||
pkg: '{{ centos8_packages_to_install }}'
|
||||
state: present
|
||||
when:
|
||||
- ansible_distribution_file_variety == "RedHat"
|
||||
- ansible_distribution_major_version is version_compare('8', '>=')
|
||||
|
||||
- name: Install the packages to automate some yum tasks on CentOS 7
|
||||
yum:
|
||||
pkg: '{{ centos7_packages_automation }}'
|
||||
state: present
|
||||
when:
|
||||
- ansible_distribution_file_variety == "RedHat"
|
||||
- ansible_distribution_major_version is version_compare('7', '<=')
|
||||
- el_yum_automation
|
||||
|
||||
- name: Install the packages to automate some dnf tasks on CentOS 8
|
||||
yum:
|
||||
pkg: '{{ centos8_packages_automation }}'
|
||||
state: present
|
||||
when:
|
||||
- ansible_distribution_file_variety == "RedHat"
|
||||
- ansible_distribution_major_version is version_compare('8', '>=')
|
||||
- el_dnf_automation
|
||||
|
||||
- name: Install the basic packages from the EPEL repository
|
||||
yum: name={{ centos_packages_from_epel }} state={{ centos_pkg_state }}
|
||||
when: centos_install_epel
|
||||
|
|
Loading…
Reference in New Issue