nmcli example: modern way to install packages (#49110)

- use the generic `package` module, this way it will cover dnf and yum
- to not specify the x86_64 arch, the package manager will pull the fine
  version anyway
- with_items with package is deprecated
- libnm-qt-devel is only in Fedora 27 and 28.
pull/49766/head
Gonéri Le Bouder 6 years ago committed by Abhijeet Kasurde
parent e464c543f6
commit e7750768f7

@ -314,15 +314,13 @@ EXAMPLES = '''
tasks:
- name: install needed network manager libs
yum:
name: '{{ item }}'
package:
name:
- NetworkManager-glib
- nm-connection-editor
- libsemanage-python
- policycoreutils-python
state: installed
with_items:
- NetworkManager-glib
- libnm-qt-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

Loading…
Cancel
Save