Has anyone seen this error before ? There is no "slave-type" in the nmcli 
module. 

"msg": "Error: Failed to modify connection 'em1': connection.slave-type: 
Cannot set 'master' without 'slave-type'\n",


---
- hosts: kvm0
  remote_user: root
  tasks:

  - name: install needed network manager libs
    yum:
      name: '{{ item }}'
      state: installed
    with_items:
      - NetworkManager-glib
      - libnm-gtk-devel.x86_64
      - nm-connection-editor.x86_64
      - libsemanage-python
      - policycoreutils-python

##### Working with all cloud nodes - Teaming
  - name: try nmcli add team - conn_name only & ip4 gw4
    nmcli:
      type: team
      mode: active-backup
      conn_name: '{{ item.conn_name }}'
      ip4: '{{ item.ip4 }}'
      gw4: '{{ item.gw4 }}'
      state: present
    with_items:
      - '{{ nmcli_team }}'

  - name: try nmcli add teams-slave
    nmcli:
      type: team-slave
      conn_name: '{{ item.conn_name }}'
      ifname: '{{ item.ifname }}'
      master: '{{ item.master }}'
      state: present
    with_items:
      - '{{ nmcli_team_slave }}'




#./host_vars/kvm0.yml 
host_ip4: "192.168.2.22"
host_gw4: "192.168.2.5"
dns1: "192.168.2.5"
dns2: "192.168.2.47"

#Team vars
nmcli_team:
  - conn_name: team1
    ip4: '{{ host_ip4 }}'
    gw4: '{{ host_gw4 }}'

nmcli_team_slave:
  - conn_name: em1
    ifname: em1
    master: team1
  - conn_name: em2
    ifname: em2

CentOS Linux release 7.4.1708 (Core)

ansible 2.5.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', 
u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5 
20150623 (Red Hat 4.8.5-16)]

-- 
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/9c05c7d3-7f9d-4c8e-9e72-ad4cef347c30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to