# 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/4437ca4b-fefc-4022-9717-b78f217bba5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to