Hi all,
this might be much easier -- I just somehow cannot find the right solution. I'm trying to execute something like the salt way:
$ rm -rf /opt/activemq*
Of course, I could execute it as a command, however, I wanted to use file.absent:
delete_activemq:
file.absent:
- names:
- /opt/activemq*
- /etc/init.d/activemq
- /etc/default/activemq
All works fine except that salt is trying to delete a folder / file with the name /opt/activemq* instead of interpreting the * as a regular expression / regex.
How can I do that?
Thank you,
Edgar