1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_base.git synced 2024-08-16 14:29:50 +02:00

Add packages for reasonable linux servers

This commit is contained in:
L3D 2020-08-28 13:46:31 +02:00 committed by L3D
parent f77d812796
commit d556fe5778
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
2 changed files with 17 additions and 4 deletions

View file

@ -11,8 +11,8 @@
name: "{{ base__modern_packages }}"
state: "{{ base__package_state }}"
when: |
ansible_distribution == 'Ubuntu' and ansible_distribution_version | float >= "16.0" or
ansible_os_family == 'RedHat' and ansible_distribution_version | float >= "7" or
ansible_distribution == 'Ubuntu' and ansible_distribution_version | float >= 16.0 or
ansible_os_family == 'RedHat' and ansible_distribution_version | float >= 7 or
ansible_distribution == 'Debian' and ansible_distribution_version | float >= 8 or
ansible_os_family == 'Archlinux'
@ -22,5 +22,17 @@
name: "{{ base__debian_packages }}"
state: "{{ base__package_state }}"
when: |
ansible_distribution == 'Ubuntu' and ansible_distribution_version | float >= "16.0" or
ansible_distribution == 'Ubuntu' and ansible_distribution_version | float >= 16.0 or
ansible_distribution == 'Debian' and ansible_distribution_version | float >= 8
- name: install packages for all reasonable non-legacy x86 systems
become: true
package:
name: "{{ base__linux_packages }}"
state: "{{ base__package_state }}"
when: |
ansible_distribution == 'Ubuntu' and ansible_distribution_version | float >= 16.0 or
ansible_distribution == 'Fedora' and ansible_distribution_version | float >= 32 or
ansible_distribution == 'Debian' and ansible_distribution_version | float >= 8 or
ansible_os_family == 'Archlinux'

View file

@ -37,7 +37,8 @@ base__debian_packages:
- python3-apt
- dnsutils
packages_for_all_except_rhel:
# packages for reasonable linux servers (not RHEL/Centos)
base__linux_packages:
- ranger
- python3-pip
- python3