summaryrefslogtreecommitdiff
path: root/lib/ansible/cli/playbook.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/cli/playbook.py')
-rwxr-xr-xlib/ansible/cli/playbook.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ansible/cli/playbook.py b/lib/ansible/cli/playbook.py
index c94cf0ff77..9c091a675a 100755
--- a/lib/ansible/cli/playbook.py
+++ b/lib/ansible/cli/playbook.py
@@ -54,6 +54,8 @@ class PlaybookCLI(CLI):
opt_help.add_module_options(self.parser)
# ansible playbook specific opts
+ self.parser.add_argument('--syntax-check', dest='syntax', action='store_true',
+ help="perform a syntax check on the playbook, but do not execute it")
self.parser.add_argument('--list-tasks', dest='listtasks', action='store_true',
help="list all tasks that would be executed")
self.parser.add_argument('--list-tags', dest='listtags', action='store_true',