Improve support for deploying ceph on standalone system

The standalone deployer adds "ansible_connection: local" to facilitate
all-in-one deployments. This patch passes on this setting when generating
the inventory used by ceph-ansible.

Change-Id: I694c4b3c7fb98e11d7a52eed4072a37471c0e405
This commit is contained in:
Alan Bishop 2018-10-03 12:47:23 +00:00
parent 0fd44e4713
commit 3f5ed998eb
1 changed files with 3 additions and 0 deletions

View File

@ -393,6 +393,9 @@ outputs:
ansible_user: {{ hostvars.raw_get(host)['ansible_ssh_user'] | default('root') }}
ansible_host: {{ hostvars.raw_get(host)['ansible_host'] | default(host) }}
ansible_become: true
{% if hostvars.raw_get(host)['ansible_connection'] | default('') == 'local' -%}
ansible_connection: local
{% endif -%}
{% endif -%}
{% endif -%}
{%- endfor -%}