Ok I ran by using the command `ansible-playbook -i /etc/ansible/local
Dev-Test-IAM.yml`
Is that the fault? Do I need to specifically call the module into play?
Example: the EC2_Group in the past the module was called out in the yml
file. But I see that has changed.
---
tasks:
- name: Assign a policy called Admin to the administrators group
iam_policy:
region: us-east-1
profile: dev
iam_type: role
iam_name: test
policy_name: Admin
state: present
policy_document: hhc-dev-ops-LV2.json
On Tuesday, December 13, 2016 at 8:05:40 AM UTC-5, Jeremy Young wrote:
>
> Looks like a spacing issue. Your list of tasks needs to be indented two
> spaces.
>
> On Monday, December 12, 2016 at 4:45:06 PM UTC-6, Dan wrote:
>>
>> # Example of role with custom trust policy for Lambda service
>> ---
>> task:
>> - name: Assign a policy called Admin to the administrators group
>> iam_policy:
>> region: us-east-1
>> profile: dev
>> iam_type: role
>> iam_name: test
>> policy_name: Admin
>> state: present
>> policy_document: hhc-dev-ops-LV2.json
>>
>> Everytime I run this as
>>
>> `ansible-playbook -i /etc/ansible/local Dev-Test-IAM-pwr.yaml`
>>
>> It fails and barks at
>>
>> The offending line appears to be:
>>
>> ---
>> task:
>> ^ here
>>
>> Is it tasks or task?
>>
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/549ea3ea-ae97-4cef-8bc6-eab898dbd5cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.