Re: [ansible-project] Trying to run a command when a file matching a regex does not exist.

2014-04-09 Thread Michael DeHaan
Change command: to shell: if you want to use shell features like wildcards, and this should work fine. Thanks! On Tue, Apr 8, 2014 at 5:56 AM, Michael Kelly michaelkellycl...@gmail.comwrote: Hi, I'm trying to run a command when a file matching a regex does not exist. My use case is I am

[ansible-project] Trying to run a command when a file matching a regex does not exist.

2014-04-08 Thread Michael Kelly
Hi, I'm trying to run a command when a file matching a regex does not exist. My use case is I am unzipping an artifact - ec2-api-tools.zip This will unzip to a directory that includes the version number - e.g. ec2-api-tools-1.6.13.0 I want to check if there is a directory that matches the