On Mon, 1 Mar 2021 10:03:02 +0100
Sakshi Rathore <[email protected]> wrote:

> instead of specific ip when i want all ip addresses without bracket

It's not clear what type you're looking for. Should it be a list?

    - debug:
        var: ip_list|flatten

gives

  ip_list|flatten:
  - ipadd1
  - ipadd2
  - ipadd3
  - ipadd4
  - ipadd5
  - ipadd6
  - ipadd7
  - ipadd8

Or, should it be a string perhaps?

    - debug:
        var: ip_list|flatten|join(',')

gives

  ip_list|flatten|join(','):
  ipadd1,ipadd2,ipadd3,ipadd4,ipadd5,ipadd6,ipadd7,ipadd8

Post expected result if this not what you want.

-- 
Vladimir Botka

-- 
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/20210301102919.6fa7f38b%40gmail.com.

Attachment: pgp7O7OY437lh.pgp
Description: OpenPGP digital signature

Reply via email to