From bea77c938ef128995808fa4370292a366a22761f Mon Sep 17 00:00:00 2001 From: toninog Date: Tue, 9 Jun 2015 15:27:15 +0100 Subject: [PATCH] fixes to code to enable updates of user to groups and delete groups. Fixed example yaml to use groups --- lib/ansible/modules/cloud/amazon/iam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/iam.py b/lib/ansible/modules/cloud/amazon/iam.py index c583332220f..5dd45d83444 100644 --- a/lib/ansible/modules/cloud/amazon/iam.py +++ b/lib/ansible/modules/cloud/amazon/iam.py @@ -146,7 +146,7 @@ task: iam_type: user name: jdavila state: update - group: "{{ item.created_group.group_name }}" + groups: "{{ item.created_group.group_name }}" with_items: new_groups.results '''