ansible-playbooks/roles/net-config
2025-11-02 21:18:15 +01:00
..
meta chore: first commit 2025-07-25 20:23:54 +02:00
tasks chore: ansible-lint 2025-11-02 21:18:15 +01:00
templates feat: add metric support and fix net-persist issues with multiple NICs 2025-08-26 00:31:24 +02:00
README.md chore: first commit 2025-07-25 20:23:54 +02:00

net-config

This role configures a network interface.

Requirements

None

Example Playbook

- hosts: servers
  roles:
      - role: net-config
        interface:
            name: lan0
            mac_address: 02:a0:c9:8d:7e:b6
            address: 192.168.1.2/24
            gateway: 192.168.1.254
            nameservers:
                - 1.1.1.1
                - 8.8.8.8

License

MIT

Author Information

Jokester main@jokester.fr