### Summary

Our CI is breaking when gathering facts:
```
TASK [Gathering Facts] *********************************************************
  fatal: [debian-11]: FAILED! => {
      "ansible_facts": {},
      "changed": false,
      "failed_modules": {
          "ansible.legacy.setup": {
              "failed": true,
              "module_stderr": "Error: No such container: inventory_hostname\n",
              "module_stdout": "",
              "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
              "rc": 1
          }
      }
  }
  
  MSG:
  
  The following modules failed to execute: ansible.legacy.setup
  ```
https://github.com/pulp/pulp_installer/runs/5134587244?check_suite_focus=true#step:7:147

it believe it started with this commit: https://github.com/ansible/ansible/commit/6d2d476113b3a26e46c9917e213f09494fbc0a13 

### Issue Type

Bug Report

### Component Name

ansible.legacy.setup

### Ansible Version

```console
$ ansible --version
ansible [core 2.13.0.dev0]
  config file = /home/runner/work/pulp_installer/pulp_installer/ansible.cfg
  configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/ansible
  ansible collection location = /home/runner/.ansible/collections:/usr/share/ansible/collections
  executable location = /opt/hostedtoolcache/Python/3.9.10/x64/bin/ansible
  python version = 3.9.10 (main, Feb  3 2022, 07:33:39) [GCC 9.3.0]
  jinja version = 3.0.3
  libyaml = True
```


### Configuration

```console
$ ansible-config dump --only-changed
```


### OS / Environment

Debian 11, CentOS 8 stream, fedora 35, CentOS 7

### Steps to Reproduce

Run molecule test with docker images on ansible core 2.13.0.dev0


### Expected Results

Successfully gather facts

### Actual Results

```console
TASK [Gathering Facts] *********************************************************
  fatal: [debian-11]: FAILED! => {
      "ansible_facts": {},
      "changed": false,
      "failed_modules": {
          "ansible.legacy.setup": {
              "failed": true,
              "module_stderr": "Error: No such container: inventory_hostname\n",
              "module_stdout": "",
              "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
              "rc": 1
          }
      }
  }
  
  MSG:
  
  The following modules failed to execute: ansible.legacy.setup
  ```


### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct
options = C.config.get_configuration_definitions(get_plugin_class(plugin), plugin._load_name)
        for option in options:
            if option:
                flag = options[option].get('name')
                if flag:
                    setattr(self, flag, plugin.get_option(flag))
    def set_attributes_from_play(self, play):
        self.force_handlers = play.force_handlers
    def set_attributes_from_cli(self):
        '''
        Configures this connection information instance with data from
        options specified by the user on the command line. These have a
        lower precedence than those set on the play or host.
        '''
        if context.CLIARGS.get('timeout', False):
            self.timeout = int(context.CLIARGS['timeout'])
        
        
        self.private_key_file = context.CLIARGS.get('private_key_file')  
        self.verbosity = context.CLIARGS.get('verbosity')  
        
        self.start_at_task = context.CLIARGS.get('start_at_task', None)  
    def set_task_and_variable_override(self, task, variables, templar):