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/39bf86f2-f4bc-40cf-ac33-314f6d73b304%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
