Hi,
I am trying to create a bridge network on centos 7. Unfortunately it does
not work with my playbook. What am I doing wrong?
Using Fedora 25 with Ansible 2.2.1.0 to change network settings on Centos 7
64bit.
This is what I did.
What am I missing?
----------- start -------------------------
---
- hosts: test
user: root
tasks:
- name: yum upgrade all packages.
yum: name=* state=latest
- name: install needed network manager libs
yum:
name: '{{ item }}'
state: installed
with_items:
- NetworkManager-glib
- nm-connection-editor
- libsemanage-python
- policycoreutils-python
- bridge-utils
- name: setup network bridge
nmcli:
conn_name: br0
ifname: br0
type: bridge
ip4: 10.0.0.42/24
gw4: 10.0.0.1
state: present
- name: setup ethernet interface
nmcli:
conn_name: eth0
ifname: eth0
master: br0
state: present
----------- end --------------------------
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/d1c31ee0-87cb-4f7d-b7d0-01909b0bd622%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.