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:
parent
e464c543f6
commit
e7750768f7
1 changed files with 6 additions and 8 deletions
|
@ -314,15 +314,13 @@ EXAMPLES = '''
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: install needed network manager libs
|
- name: install needed network manager libs
|
||||||
yum:
|
package:
|
||||||
name: '{{ item }}'
|
name:
|
||||||
|
- NetworkManager-glib
|
||||||
|
- nm-connection-editor
|
||||||
|
- libsemanage-python
|
||||||
|
- policycoreutils-python
|
||||||
state: installed
|
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
|
##### Working with all cloud nodes - Teaming
|
||||||
- name: try nmcli add team - conn_name only & ip4 gw4
|
- name: try nmcli add team - conn_name only & ip4 gw4
|
||||||
|
|
Loading…
Reference in a new issue