1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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.
This commit is contained in:
Gonéri Le Bouder 2018-12-11 07:07:07 -05:00 committed by Abhijeet Kasurde
parent e464c543f6
commit e7750768f7

View file

@ -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