From b201df7257f700edab56e13d2d85e503624e634a Mon Sep 17 00:00:00 2001 From: John Fulton Date: Sun, 28 Oct 2018 11:06:20 -0400 Subject: [PATCH] Add additional whitespace around "ansible_connection: local" The jinja2 condition to look for "ansible_connection: local" did not contain enough whitespace and resulted in an invalid Ansible inventory. This patch adds the missing whitespace by indenting the condition. Change-Id: Ia114edafe6f1b37d6e6d47af146ab35adeb79efd Closes-Bug: #1800148 --- docker/services/ceph-ansible/ceph-base.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/services/ceph-ansible/ceph-base.yaml b/docker/services/ceph-ansible/ceph-base.yaml index 7d7848a2a8..4e66ddcfef 100644 --- a/docker/services/ceph-ansible/ceph-base.yaml +++ b/docker/services/ceph-ansible/ceph-base.yaml @@ -392,10 +392,10 @@ outputs: {{ host }}: 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' -%} + {% if hostvars.raw_get(host)['ansible_connection'] | default('') == 'local' -%} ansible_connection: local - {%- endif %} + {%- endif %} + ansible_become: true {% endfor -%} {%- endif -%}