Hi guys,
I'm trying to configure an EC2 Security Group using Ansible, since all of
my security groups contain a set of 'base rules', I'm trying to split that
portion out to avoid duplication.
To do so I have:
base_rules: [
{ proto: ...
, from_port: ...
...
},
{ proto: ...
...
]
Which works fine on it's own, I have however been unable to add entries to
it, or to pass in multiple lists of dicts to ec2_groups.
What I've tried is:
'{{ base_rules }} + {{ group_rules }}' # whereby group_rules is defined
similar to base_rules, this does run but complains.
'{{ base_rules }} + [ <define group_rules in line> ] # same result.
Anyone has a suggestion on how to deal with this?
Thanks,
Nico.
--
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/1e693483-a123-4fef-84ab-4ca3d6e7ffde%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.