Spacing was changed and I am really at a loss. Python 2.7.12 ansible 2.3.0 Mac
If someone can create an example that works, I will be willing to try that, to be able to move forward. Any help? On Tuesday, December 13, 2016 at 8:18:24 AM UTC-5, Dan wrote: > > 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/f9f32dc6-6f0a-440d-a48d-c946999a0ca2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
