Giter VIP home page Giter VIP logo

ansible-role-networkmanager's Introduction

ansible-role-networkmanager

GitHub Build Status

Ansible role for installing networkmanager and configuring connections.

First development version of the role.

Currently only installation and nmcli config is possible. Reboot is not done via role.

Supported Platforms

  • Alpine
  • Archlinux
  • CentOS
  • Debian
  • Fedora
  • OpenSuse Leap, Tumbleweed
  • OracleLinux
  • Ubuntu

Requirements

Ansible 2.9 or higher.

Variables

Variables and defaults for this role.

defaults/main.yml

# The role is disabled by default, so you do not get in trouble.
# Checked in tasks/main.yml which uses a tasks block if enabled.
networkmanager_role_enabled: false

# Specify additional packages to install for NetworkManager plugin:
# EXAMPLE: Install vpnc plugin on Debian for connection to AVM FritzBox VPN
# networkmanager_plugins:
#   - network-manager-vpnc
networkmanager_plugins: []

# Configuration via nmcli module, takes list of dicts, for keys see:
# https://docs.ansible.com/ansible/latest/collections/community/general/nmcli_module.html
# ATTENTION: Always specify "state: present|absent", as ansible nmcli requires it.
# ATTENTION2: The nmcli module is not idempotent...
# EXAMPLE:
# networkmanager_nmcli:
#   - type: ethernet
#     conn_name: dummy0
#     dns4: 192.168.200.1
#     dns4_search: my.domain.test
#     ifname: enps3
#     ip4: 192.168.200.25/24
#     gw4: 192.168.200.1
#     state: present
networkmanager_nmcli: []

Dependencies

None.

Example Playbook

---
# role: ansible-role-networkmanager
# file: site.yml

- hosts: all
  become: true
  gather_facts: true
  vars:
    networkmanager_role_enabled: true
  roles:
    - role: ansible-role-networkmanager

License and Author

Licensed under MIT License. See LICENSE file in repository.

References

ansible-role-networkmanager's People

Contributors

jomrr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.