2020-08-28 13:32:16 +02:00
|
|
|
---
|
|
|
|
- name: install base packages for all operating systems
|
|
|
|
become: true
|
|
|
|
package:
|
|
|
|
name: "{{ base__packages }}"
|
|
|
|
state: "{{ base__package_state }}"
|
|
|
|
|
|
|
|
- name: install packages for all non-legacy x86 systems
|
|
|
|
become: true
|
|
|
|
package:
|
|
|
|
name: "{{ base__modern_packages }}"
|
|
|
|
state: "{{ base__package_state }}"
|
|
|
|
when: |
|
2020-08-28 13:46:31 +02:00
|
|
|
ansible_distribution == 'Ubuntu' and ansible_distribution_version | float >= 16.0 or
|
|
|
|
ansible_os_family == 'RedHat' and ansible_distribution_version | float >= 7 or
|
2020-08-28 13:32:16 +02:00
|
|
|
ansible_distribution == 'Debian' and ansible_distribution_version | float >= 8 or
|
|
|
|
ansible_os_family == 'Archlinux'
|
2020-08-28 13:41:58 +02:00
|
|
|
|
|
|
|
- name: install packages for all non-legacy Debian/Ububntu systems
|
|
|
|
become: true
|
|
|
|
package:
|
|
|
|
name: "{{ base__debian_packages }}"
|
|
|
|
state: "{{ base__package_state }}"
|
|
|
|
when: |
|
2020-08-28 13:46:31 +02:00
|
|
|
ansible_distribution == 'Ubuntu' and ansible_distribution_version | float >= 16.0 or
|
2020-08-28 13:41:58 +02:00
|
|
|
ansible_distribution == 'Debian' and ansible_distribution_version | float >= 8
|
2020-08-28 13:46:31 +02:00
|
|
|
|
|
|
|
- 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'
|