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:
parent
e464c543f6
commit
e7750768f7
1 changed files with 6 additions and 8 deletions
|
@ -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…
Reference in a new issue