Set static IP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lyz 761e090b03
Add support for specifying the interface
3 months ago
defaults Small fixes 1 year ago
meta Add support for specifying the interface 3 months ago
molecule/default Add support for specifying the interface 3 months ago
tasks Add support for specifying the interface 3 months ago
templates Add support for specifying the interface 3 months ago
vars Support static ip for debian 1 year ago
.gitignore Added gitignore 1 year ago
.yamllint Support static ip for debian 1 year ago
History.md Add support for specifying the interface 3 months ago
LICENSE Support static ip for debian 1 year ago
README.md Add support for specifying the interface 3 months ago

README.md

Static IP

The intended use of this role is the configuration of a static IP

Requirements

  • Debian based hosts

Role Variables

  • instance: Dictionary with the options of the role
    • ip: Static IP to set
    • inteface: The interface to configure, by default it will use ansible_default_ipv4.interface
    • netmask: Network netmask
    • gateway: Network gateway

Dependencies

None.

Example Playbook

---
- hosts: all
  roles:
    - static_ip

Testing

To test the role you need molecule.

molecule test

License

GPLv2

Author Information

Lyz (lyz at riseup net)