summaryrefslogtreecommitdiff
path: root/bin/ansible-playbook
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ansible-playbook')
-rwxr-xr-xbin/ansible-playbook13
1 files changed, 1 insertions, 12 deletions
diff --git a/bin/ansible-playbook b/bin/ansible-playbook
index e63785b0..9c091a67 100755
--- a/bin/ansible-playbook
+++ b/bin/ansible-playbook
@@ -18,7 +18,7 @@ from ansible import context
from ansible.cli.arguments import option_helpers as opt_help
from ansible.errors import AnsibleError
from ansible.executor.playbook_executor import PlaybookExecutor
-from ansible.module_utils.common.text.converters import to_bytes
+from ansible.module_utils._text import to_bytes
from ansible.playbook.block import Block
from ansible.plugins.loader import add_all_plugin_dirs
from ansible.utils.collection_loader import AnsibleCollectionConfig
@@ -67,19 +67,8 @@ class PlaybookCLI(CLI):
self.parser.add_argument('args', help='Playbook(s)', metavar='playbook', nargs='+')
def post_process_args(self, options):
-
- # for listing, we need to know if user had tag input
- # capture here as parent function sets defaults for tags
- havetags = bool(options.tags or options.skip_tags)
-
options = super(PlaybookCLI, self).post_process_args(options)
- if options.listtags:
- # default to all tags (including never), when listing tags
- # unless user specified tags
- if not havetags:
- options.tags = ['never', 'all']
-
display.verbosity = options.verbosity
self.validate_conflicts(options, runas_opts=True, fork_opts=True)