From 63444136baeb9db90a080da28795c254670dd5c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Jacquin?= <1536771+remyj38@users.noreply.github.com> Date: Mon, 17 Sep 2018 21:54:48 +0200 Subject: [PATCH] Add example for multiple package selection with dnf (#45610) Thanks for enhancing the Ansible documentation! --- lib/ansible/modules/packaging/os/dnf.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ansible/modules/packaging/os/dnf.py b/lib/ansible/modules/packaging/os/dnf.py index 1a50c2eccc3..6c89afee472 100644 --- a/lib/ansible/modules/packaging/os/dnf.py +++ b/lib/ansible/modules/packaging/os/dnf.py @@ -207,6 +207,13 @@ EXAMPLES = ''' name: httpd state: latest +- name: install the latest version of Apache and MariaDB + dnf: + name: + - httpd + - mariadb-server + state: latest + - name: remove the Apache package dnf: name: httpd