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