Made the modification still no luck: ansible-playbook -i /etc/ansible/local Dev-Test-IAM-pwr.yaml ERROR! playbooks must be a list of plays
The error appears to have been in /Dev-Test-IAM-pwr.yaml': line 3, column 1, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: --- tasks: ^ here I am unsure of how the "iam_policy" module and the "iam" module differ, other than the maintainer. Can anyone provide me a test yaml file so I can get on with either module? If I can't move foward with this module, then I should just create my roles via AWS cmdline. On Monday, December 12, 2016 at 5:45:06 PM UTC-5, 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/6184b7ae-47e7-4e89-80c2-7db7a6168d51%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
