From 874d436bd048ad07c4cb2f70b2e41b2fb149a85e Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Wed, 31 Mar 2021 11:52:27 +0100 Subject: [PATCH] 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. --- float | 8 -------- 1 file changed, 8 deletions(-) diff --git a/float b/float index 7af7e023..7c80cf12 100755 --- a/float +++ b/float @@ -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') -- GitLab