This Ansible role installs common networking diagnostic tools on Ubuntu-based systems.
- An Ubuntu-based system.
- Ansible version 2.9 or later.
- Root privileges (via
become: true
).
This role does not use any variables.
This role has no dependencies.
- hosts: your_hosts
become: true
roles:
- brett-buskirk.net_tools
You can install this role using Ansible Galaxy:
ansible-galaxy install brett-buskirk.net_tools
Or you can include it in your requirements.yml
file:
---
roles:
- name: brett-buskirk.net_tools
src: https://github.com/brett-buskirk/ansible-role-net_tools
version: main # or a specific tag
Then install it using:
ansible-galaxy install -r requirements.yml
This role performs the following tasks:
- Update apt cache: Updates the apt package cache to ensure the latest package information is available.
- Install networking diagnostic tools: Installs the following packages:
net-tools
: Provides basic networking utilities likeifconfig
andnetstat
.traceroute
: Traces the route packets take to a network host.nmap
: A powerful network scanner and security auditing tool.iproute2
: Provides advanced networking utilities likeip
.
Include the role in your playbook as shown in the "Example Playbook" section. The role will automatically install the necessary packages on the target host.
MIT
This role was created by Brett Buskirk for RC Journey.
networking, network, tools, diagnostics, net-tools, traceroute, netcat, iproute2, system, utility, admin