From 062315ecaaf1096f808b68eb8d88cf8ab3ab2cfc Mon Sep 17 00:00:00 2001 From: Olivier Clavel Date: Thu, 20 Oct 2022 20:20:56 +0200 Subject: [PATCH] Fix yum exclude example to align to parameter doc (#79128) --- lib/ansible/modules/yum.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/yum.py b/lib/ansible/modules/yum.py index cce8f4cb755..79db8178662 100644 --- a/lib/ansible/modules/yum.py +++ b/lib/ansible/modules/yum.py @@ -353,7 +353,9 @@ EXAMPLES = ''' ansible.builtin.yum: name: '*' state: latest - exclude: kernel*,foo* + exclude: + - kernel* + - foo* - name: Install the nginx rpm from a remote repo ansible.builtin.yum: