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'
- 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