From 63a619fbaef1b8c2a88f0af125c4ab38d1bd6cc8 Mon Sep 17 00:00:00 2001 From: Baraa Basata Date: Wed, 22 Jul 2015 00:03:33 -0400 Subject: [PATCH] Fix iam_policy example --- lib/ansible/modules/cloud/amazon/iam_policy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/iam_policy.py b/lib/ansible/modules/cloud/amazon/iam_policy.py index 5026169e104..9213d1585b0 100644 --- a/lib/ansible/modules/cloud/amazon/iam_policy.py +++ b/lib/ansible/modules/cloud/amazon/iam_policy.py @@ -120,7 +120,7 @@ tasks: iam_policy: iam_type: user iam_name: "{{ item.user }}" - policy_name: "s3_limited_access_{{ item.s3_user_prefix }}" + policy_name: "s3_limited_access_{{ item.prefix }}" state: present policy_json: " {{ lookup( 'template', 's3_policy.json.j2') }} " with_items: