hi, again a very simple use case in appearance but that is driving me nuts
to realize with ansible, anyone ever done :
tasks:
- name: run a module
any_module:
users: {{item}} # I want to loop first here
state: absent
name: "prefixed-*" # basically anything that starts with 'prefixed'
I tried :
- as above just using the wildcard symbol , doesn't work
Things that comes to mind :
- use startswith , but can't find the syntax that would fit here
- use another loop, but that tales me to the slope of nested_loops ,
something I was NEVER able to make it working.
any simple possibility to just use wildcard in a string ?
thanks
--
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/2b7ce081-b637-43f0-875b-3fb1202501c2n%40googlegroups.com.