### Summary

Currently, `disable_lookups=True` is hard-coded, it would be nice if this could be overridden.

### Issue Type

Bug Report

### Component Name

inventory

### Ansible Version

```console
$ ansible --version
ansible [core 2.12.1]
  config file = /Users/mark/.ansible.cfg
  configured module search path = ['/Users/mark/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/mark/.ansible/collections/ansible_collections/community/digitalocean/venv/lib/python3.9/site-packages/ansible
  ansible collection location = /Users/mark/.ansible/collections:/usr/share/ansible/collections
  executable location = /Users/mark/.ansible/collections/ansible_collections/community/digitalocean/venv/bin/ansible
  python version = 3.9.9 (main, Dec  9 2021, 19:41:06) [Clang 13.0.0 (clang-1300.0.29.3)]
  jinja version = 3.0.3
  libyaml = True
```


### Configuration

```console
$ ansible-config dump --only-changed
DEFAULT_STDOUT_CALLBACK(/Users/mark/.ansible.cfg) = yaml
DIFF_ALWAYS(/Users/mark/.ansible.cfg) = True
INTERPRETER_PYTHON(/Users/mark/.ansible.cfg) = /Users/mark/.pyenv/shims/python3
```


### OS / Environment

MacOS 12.0.1

### Steps to Reproduce

There's nothing to reproduce, it's an observation.

### Expected Results

N/A

### Actual Results

```console
N/A
```


### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct
self._cache.flush()
    def update_cache_if_changed(self):
        self._cache.update_cache_if_changed()
    def set_cache_plugin(self):
        self._cache.set_cache()
class Constructable(object):
    def _compose(self, template, variables):
        ''' helper method for plugins to compose variables for Ansible based on jinja2 expression and inventory vars'''
        t = self.templar
        try:
            use_extra = self.get_option('use_extra_vars')
        except Exception:
            use_extra = False
        if use_extra:
            t.available_variables = combine_vars(variables, self._vars)
        else:
            t.available_variables = variables
        return t.template('%s%s%s' % (t.environment.variable_start_string, template, t.environment.variable_end_string), disable_lookups=True)
    def _set_composite_vars(self, compose, variables, host, strict=False):
        ''' loops over compose entries to create vars for hosts '''
        if compose and isinstance(compose, dict):
            for varname in compose:
                try:
                    composite = self._compose(compose[varname], variables)
                except Exception as e:
                    if strict:
                        raise AnsibleError("Could not set %s for host %s: %s" % (varname, host, to_native(e)))
                    continue
                self.inventory.set_variable(host, varname, composite)
    def _add_host_to_composed_groups(self, groups, variables, host, strict=False, fetch_hostvars=True):