On Fri, 25 Aug 2023 at 10:34, Shivani Arora <[email protected]> wrote:
> output of "Attach WAF to ALBs:
>
> TASK [Attach WAF to ALBs] *
> **************************************************************************************************************
> **
>
> Thursday 24 August 2023 12:34:47 -0700 (0:00:00.305) 0:00:33.257 *
> ********
>
> failed: [localhost] (item=us-east-1) => {"ansible_loop_var": "item",
> "changed": true, "cmd": "for alb_arn in
> ['arn:aws:elasticloadbalancing:us-east-1:<>:loadbalancer/app/Web-QAtest/c1fba8d4f0526447',
> 'arn:aws:elasticloadbalancing:us-east-1:<>:loadbalancer/app/Service-QAtest/1c8cde570dbc2c98',
> 'arn:aws:elasticloadbalancing:us-east-1:<>:loadbalancer/app/ServiceInt-QAtest/e8b1dcfb2f17b6e1'];
>
I think the problem is here. You are trying to loop over a yaml list in
your shell code, which does not work. I'm guessing you'd need to join that
yaml list by a space to make it work in the shell command. That is assuming
the items themself do not contain spaces.
So the first line of your shell command would be:
for alb_arn in {{ alb_map_arns[item] | join(' ') }}; do
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAF8BbLYk8FTy0v290gYztaFdKfEOjRCndMUeuGwGsYc_pA0uDA%40mail.gmail.com.