diff --git a/yamd b/yamd index 426cb4e..f3716c3 100755 --- a/yamd +++ b/yamd @@ -227,7 +227,7 @@ our $task = undef; { my ($filename, $path, $suffix) = fileparse($task_file); - if ($path =~ 'ansible' && $filename == 'args') { + if ($path =~ 'ansible' && $filename eq 'args') { # Calling from Ansible with args in the JSON-file open(my $fh, "<", $task_file); $task = decode_json(<$fh>);