This sounds like this may be a mixed version of Ansible to me, an old
library or something half running out of devel and half an install.




On Wed, Jun 25, 2014 at 1:29 PM, Douglas Lopes Pereira <
[email protected]> wrote:

> I need to create an alarm associated with one of my AWS instances. For
> that I'm using the following task:
>
> - name: Create CPU utilization metric alarm
>   sudo: false
>   local_action: ec2_metric_alarm state=present region=us-east-1
> name="Alarm Name" metric="CPUUtilization" statistic=Average comparison=">="
> threshold=80.0 unit="Percent" period=300 evaluation_periods=1
> description="It will be triggered when CPU utilization is more than 80% for
> 5 minutes" dimensions={'InstanceId':'i-abcdefg'}
>
> And it is failling with this error:
>
>
>
>
>
>
>
>
>
>
>
>
>
> *failed: [ec2-54-237-178-129.compute-1.amazonaws.com
> <http://ec2-54-237-178-129.compute-1.amazonaws.com>] => {"failed": true,
> "parsed": false}invalid output was: Traceback (most recent call last):
> File
> "/home/douglas/.ansible/tmp/ansible-tmp-1403716886.08-63354845163799/ec2_metric_alarm",
> line 1670, in <module>    main()  File
> "/home/douglas/.ansible/tmp/ansible-tmp-1403716886.08-63354845163799/ec2_metric_alarm",
> line 1655, in main    module = AnsibleModule(argument_spec=argument_spec)
> File
> "/home/douglas/.ansible/tmp/ansible-tmp-1403716886.08-63354845163799/ec2_metric_alarm",
> line 337, in __init__    self._check_argument_types()  File
> "/home/douglas/.ansible/tmp/ansible-tmp-1403716886.08-63354845163799/ec2_metric_alarm",
> line 837, in _check_argument_types    (result, exc) = self.safe_eval(value,
> dict(), include_exceptions=True)AttributeError: 'AnsibleModule' object has
> no attribute 'safe_eval'FATAL: all hosts have already failed -- aborting*
>
>
> Looks like it is trying to parse the dimensions argument as dict() but
> cannot do that.
> Any help is appreciated.
>
> Regards,
> Douglas
>
> --
> 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/19c8305f-522e-4ad2-994b-4dc760012634%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/19c8305f-522e-4ad2-994b-4dc760012634%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BnsWgwU_pk2%3Dzui78xZ2YaLDQqTG-MONO_8_4ZvAt9Ww95igw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to