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:
parent
f77d812796
commit
d556fe5778
2 changed files with 17 additions and 4 deletions
|
@ -11,8 +11,8 @@
|
||||||
name: "{{ base__modern_packages }}"
|
name: "{{ base__modern_packages }}"
|
||||||
state: "{{ base__package_state }}"
|
state: "{{ base__package_state }}"
|
||||||
when: |
|
when: |
|
||||||
ansible_distribution == 'Ubuntu' and ansible_distribution_version | float >= "16.0" or
|
ansible_distribution == 'Ubuntu' and ansible_distribution_version | float >= 16.0 or
|
||||||
ansible_os_family == 'RedHat' and ansible_distribution_version | float >= "7" or
|
ansible_os_family == 'RedHat' and ansible_distribution_version | float >= 7 or
|
||||||
ansible_distribution == 'Debian' and ansible_distribution_version | float >= 8 or
|
ansible_distribution == 'Debian' and ansible_distribution_version | float >= 8 or
|
||||||
ansible_os_family == 'Archlinux'
|
ansible_os_family == 'Archlinux'
|
||||||
|
|
||||||
|
@ -22,5 +22,17 @@
|
||||||
name: "{{ base__debian_packages }}"
|
name: "{{ base__debian_packages }}"
|
||||||
state: "{{ base__package_state }}"
|
state: "{{ base__package_state }}"
|
||||||
when: |
|
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
|
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'
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,8 @@ base__debian_packages:
|
||||||
- python3-apt
|
- python3-apt
|
||||||
- dnsutils
|
- dnsutils
|
||||||
|
|
||||||
packages_for_all_except_rhel:
|
# packages for reasonable linux servers (not RHEL/Centos)
|
||||||
|
base__linux_packages:
|
||||||
- ranger
|
- ranger
|
||||||
- python3-pip
|
- python3-pip
|
||||||
- python3
|
- python3
|
||||||
|
|
Loading…
Reference in a new issue