Skip to content
Snippets Groups Projects
Commit 874d436b authored by ale's avatar ale
Browse files

Remove useless -O option to "float run"

The same result can be achieved by simply setting the
ANSIBLE_STDOUT_CALLBACK env var, as one would with ansible-playbook.
parent f7bc7798
No related branches found
No related tags found
No related merge requests found
......@@ -416,16 +416,12 @@ def command_run(config, playbooks,
ansible_verbosity=0,
ansible_check=False,
ansible_diff=False,
ansible_stdout=None,
ansible_limit=None,
ansible_extra_vars=[]):
if not os.path.exists(config):
raise Exception(
'The configuration file %s does not exist!' % (config,))
if ansible_stdout:
os.environ['ANSIBLE_STDOUT_CALLBACK'] = ansible_stdout
for arg in playbooks:
if not os.path.exists(arg):
# See if we have a stock playbook with that name.
......@@ -583,10 +579,6 @@ memberships, using the --additional-host-group command-line option.
run_parser.add_argument(
'-C', '--check', dest='ansible_check', action='store_true',
help='Run ansible-playbook with the --check flag')
run_parser.add_argument(
'-O', '--stdout', dest='ansible_stdout', type=str,
help='Select ansible stdout callback (e.g. minimal, actionable)',
default=None)
run_parser.add_argument(
'-D', '--diff', dest='ansible_diff', action='store_true',
help='Run ansible-playbook with the --diff flag')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment