1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_packages.git synced 2024-08-16 10:19:51 +02:00

base debian setup

This commit is contained in:
L3D 2020-08-28 13:41:58 +02:00
parent d821e78e75
commit f77d812796
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
3 changed files with 13 additions and 21 deletions

View file

@ -25,23 +25,6 @@
# cache_valid_time: 43200
# when: ansible_os_family == 'Debian' and ansible_distribution_version != '7' and ansible_distribution_release != 'wheezy' and ansible_machine != 'armv6l'
#- name: Install common base packages [all - wheezy]
# become: yes
# package:
# name: "{{ base_packages_extended }}"
# state: present
# when:
# - ansible_machine != 'armv6l'
# - ansible_distribution_release != 'wheezy'
# - ansible_architecture != 'armv7l'
#- name: Install extended base packages [all - wheezy - rpi]
# become: yes
# package:
# name: "{{ base_packages }}"
# state: present
# when: ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
#-# name: Install common base packages [Fedora]
# become: yes

View file

@ -15,3 +15,12 @@
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'
- name: install packages for all non-legacy Debian/Ububntu systems
become: true
package:
name: "{{ base__debian_packages }}"
state: "{{ base__package_state }}"
when: |
ansible_distribution == 'Ubuntu' and ansible_distribution_version | float >= "16.0" or
ansible_distribution == 'Debian' and ansible_distribution_version | float >= 8

View file

@ -23,7 +23,8 @@ base__modern_packages:
- smartmontools
debian_packages:
# debian/ubuntu packages
base__debian_packages:
- debian-goodies
- molly-guard
- mtr-tiny
@ -33,9 +34,8 @@ debian_packages:
- apt-transport-https
- aptitude
- python3-setuptools
#non_legacy_debian_packages:
- python-apt
- python3-apt
- dnsutils
packages_for_all_except_rhel:
- ranger
@ -60,5 +60,5 @@ fedora_packages:
- python3-pip
- python3
playbook_version_number: 8981 # should be over ninethousand
playbook_version_number: 8998 # should be over ninethousand
playbook_version_path: 'base-packages_roles-ansible_github.version'