Merge "Allow file manipulation in the work dir" into feature/zuulv3
diff --git a/zuul/ansible/action/normal.py b/zuul/ansible/action/normal.py
index ece1411..74e732e 100644
--- a/zuul/ansible/action/normal.py
+++ b/zuul/ansible/action/normal.py
@@ -29,6 +29,12 @@
and self._task.delegate_to.startswtih('127.'))):
if self._task.action == 'stat':
paths._fail_if_unsafe(self._task.args['path'])
+ elif self._task.action == 'file':
+ dest = self._task.args.get(
+ 'path', self._task.args.get(
+ 'dest', self._task.args.get(
+ 'name')))
+ paths._fail_if_unsafe(dest)
else:
return dict(
failed=True,