Fresh RHEL 8 installs fail due to Python package error "module 'tarfile' has no attribute 'data_filter'"

Issue reported today for fresh RHEL 8 installs that are now failing on the Python package install step where Ansible is installing it's required packages:

    stdout: Collecting google-auth==2.22.0
      Downloading https://files.pythonhosted.org/packages/9c/8d/bff87fc722553a5691d8514da5523c23547f3894189ba03b57592e37bdc2/google_auth-2.22.0-py2.py3-none-any.whl (181kB)
    Collecting netaddr==0.8.0
      Downloading https://files.pythonhosted.org/packages/ff/cd/9cdfea8fc45c56680b798db6a55fa60a22e2d3d3ccf54fc729d083b50ce4/netaddr-0.8.0-py2.py3-none-any.whl (1.9MB)
    Collecting PyYAML==6.0.1
      Downloading https://files.pythonhosted.org/packages/cd/e5/af35f7ea75cf72f2cd079c95ee16797de7cd71f29ea7c68ae5ce7be1eda0/PyYAML-6.0.1.tar.gz (125kB)

    :stderr: WARNING: Running pip install with root privileges is generally not a good idea. Try `__main__.py install --user` instead.
    Exception:
    Traceback (most recent call last):
      File "/usr/lib/python3.6/site-packages/pip/utils/__init__.py", line 565, in untar_file
        tarfile.data_filter(member.replace(name=fn), location)
    AttributeError: module 'tarfile' has no attribute 'data_filter'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
        status = self.run(options, args)
      File "/usr/lib/python3.6/site-packages/pip/commands/install.py", line 346, in run
        requirement_set.prepare_files(finder)
      File "/usr/lib/python3.6/site-packages/pip/req/req_set.py", line 381, in prepare_files
        ignore_dependencies=self.ignore_dependencies))
      File "/usr/lib/python3.6/site-packages/pip/req/req_set.py", line 623, in _prepare_file
        session=self.session, hashes=hashes)
      File "/usr/lib/python3.6/site-packages/pip/download.py", line 822, in unpack_url
        hashes=hashes
      File "/usr/lib/python3.6/site-packages/pip/download.py", line 664, in unpack_http_url
        unpack_file(from_path, location, content_type, link)
      File "/usr/lib/python3.6/site-packages/pip/utils/__init__.py", line 622, in unpack_file
        untar_file(filename, location)
      File "/usr/lib/python3.6/site-packages/pip/utils/__init__.py", line 566, in untar_file
        except tarfile.LinkOutsideDestinationError:
    AttributeError: module 'tarfile' has no attribute 'LinkOutsideDestinationError'

Looks like something has changed. RHEL 8 has Python 3.6.