On Thu, 12 Nov 2020 13:37:37 +0000
"Weatherby,Gerard" <[email protected]> wrote:

> If I’m understanding the ansible-runner documentation correctly, it does not 
> use /etc/ansible but requires a directory structure set up in a particular 
> way.

Not exactly. ansible-runner is a wrapper of *ansible* and
*ansible-playbook*
https://github.com/ansible/ansible-runner/blob/devel/ansible_runner/runner_config.py#L61
https://github.com/ansible/ansible-runner/blob/devel/ansible_runner/runner_config.py#L170
        """
        Performs basic checks and then properly invokes
        - prepare_inventory
        - prepare_env
        - prepare_command
        It's also responsible for wrapping the command with the
        proper ssh agent invocation and setting early ANSIBLE_
        environment variables. """

This means, /etc/ansible is used by *ansible* and *ansible-playbook*
in the context of additional configuration by ansible-wrapper.

For example, ANSIBLE_STDOUT_CALLBACK is limited to *minimal* and
*awx_display* only.
https://github.com/ansible/ansible-runner/blob/devel/ansible_runner/runner_config.py#L227

        if 'AD_HOC_COMMAND_ID' in self.env:
            self.env['ANSIBLE_STDOUT_CALLBACK'] = 'minimal'
        else:
            self.env['ANSIBLE_STDOUT_CALLBACK'] = 'awx_display'

IMHO, the source runner_config.py is the only relevant reference to
resolve issues.

-- 
Vladimir Botka

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20201113105715.6dfdac70%40gmail.com.

Attachment: pgppUqHR4Ydm8.pgp
Description: OpenPGP digital signature

Reply via email to