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.
Jan Christian Grünhage cc47859428
initial commit
3 years ago
defaults initial commit 3 years ago
handlers initial commit 3 years ago
meta initial commit 3 years ago
tasks initial commit 3 years ago
templates initial commit 3 years ago
vars initial commit 3 years ago initial commit 3 years ago

Network Manager Role

Configure system connections managed by NetworkManager by templating the nmconnection files. Right now, only wireguard and wifi connection types are supported.


The role doesn't install anything currently, so NetworkManager should already be installed, including the nmcli cli tool.

Role Variables

A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.


A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.

Example Playbook

- hosts: all
    - network-manager
      - id: home-wifi
        uuid: 851139a3-54b5-4736-8dc0-f04d4b9de366
	type: wifi
	interface_name: wlan0
	  ssid: home-wifi
	  key_mgmt: wpa-psk
	  psk: "secret wifi passphrase"
      - id: wireguard
        uuid: 3ecc827f-2dfb-4972-885b-98f6316e7d2f
	type: wireguard
	interface_name: wg0
	  # generate with `wg genkey > privkey`
	  private_key: UJHMW7viOL4zEbTSW8t1tHnGzAEqHv7bIYfHeYyLsWg=
	  listen_port: 45678 # optional
	      # generate with `wg pubkey < privkey > pubkey`
	    - public_key: K5juPTGX3f6ZVwOh4rFYBHtMUPeJHdOWbleMo4l9Ynw=
	      endpoint: # optional
	        - ""
		- "::0/0"
	      # generate with `wg genpsk > presharedkey`, optional
	      preshared_key: 9keMl5YXH/rVzdpvJx/lRsyeKVnC7bqlKljTxJ+BJs4=