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

Add some rules for fedora/dnf based systems

This commit is contained in:
L3D 2018-11-14 11:46:29 +01:00
parent 4dbf06769b
commit 3ab687d279
3 changed files with 70 additions and 29 deletions

View file

@ -1 +1,8 @@
# role-base_packages role-base_packages
---------------------
Base packages auf den gängigsten Linux Systemen installieren
**Achtung:**
*Nur gestestet unter Debian 9 und Fedora 29!*

32
defaults/main.yml Normal file
View file

@ -0,0 +1,32 @@
---
base_packages:
- tmux
- sudo
- htop
- iftop
- iotop
- sysstat
- ethtool
- ethstatus
- nethogs
- nload
- ncdu
- atop
- vim
- nmap
- python3
- wget
- git
- bash-completion
- unzip
- python3-pip
#- rng-tools
debian_packages:
- molly-guard
- mtr-tiny
- knot-dnsutils
fedora_packages:
- mtr

View file

@ -1,34 +1,36 @@
--- ---
- name: Install common base packages
- name: Install common base packages [Debian]
apt: apt:
package: package: "{{ base_packages }}"
- tmux
- sudo
- molly-guard
- htop
- iftop
- iotop
- sysstat
- ethtool
- ethstatus
- nethogs
- nload
- ncdu
- mtr-tiny
- knot-dnsutils
- atop
- vim
- nmap
- python3
- wget
- git
- bash-completion
- unzip
- python3-pip
#- rng-tools
state: latest state: latest
update_cache: yes update_cache: yes
cache_valid_time: 43200 cache_valid_time: 43200
when:
ansible_distribution == 'Debian'
- name: Install common base packages [Debian]
apt:
package: "{{ debian_packages }}"
state: latest
update_cache: yes
cache_valid_time: 43200
when:
ansible_distribution == 'Debian'
- name: Install common base packages [Fedora]
package:
name: "{{ base_packages }}"
state: latest
when:
ansible_distribution != 'Debian'
- name: Install common base packages [Fedora]
package:
name: "{{ fedora_packages }}"
state: latest
when:
ansible_distribution != 'Debian'
- name: Install some common Debian specific packages - name: Install some common Debian specific packages
apt: apt:
@ -42,8 +44,8 @@
- name: Remove rpcbind, nfs-common - name: Remove rpcbind, nfs-common
apt: package:
pkg: name:
- rpcbind - rpcbind
- nfs-common - nfs-common
state: absent state: absent