mirror of
https://github.com/roles-ansible/ansible_role_base.git
synced 2024-08-16 14:29:50 +02:00
Add some rules for fedora/dnf based systems
This commit is contained in:
parent
4dbf06769b
commit
3ab687d279
3 changed files with 70 additions and 29 deletions
|
@ -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
32
defaults/main.yml
Normal 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
|
||||
|
|
@ -1,34 +1,36 @@
|
|||
---
|
||||
- name: Install common base packages
|
||||
|
||||
- name: Install common base packages [Debian]
|
||||
apt:
|
||||
package:
|
||||
- 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
|
||||
package: "{{ base_packages }}"
|
||||
state: latest
|
||||
update_cache: yes
|
||||
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
|
||||
apt:
|
||||
|
@ -42,8 +44,8 @@
|
|||
|
||||
|
||||
- name: Remove rpcbind, nfs-common
|
||||
apt:
|
||||
pkg:
|
||||
package:
|
||||
name:
|
||||
- rpcbind
|
||||
- nfs-common
|
||||
state: absent
|
||||
|
|
Loading…
Reference in a new issue