]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
lint: Fix spaces before and after variables
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 1 Mar 2019 15:41:55 +0000 (10:41 -0500)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Fri, 1 Mar 2019 17:22:24 +0000 (17:22 +0000)
ansible-lint reports:

[206] Variables should have spaces after {{ and before }}

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-client/tasks/create_users_keys.yml
roles/ceph-osd/tasks/openstack_config.yml

index edcd1d1c0149648a90436f4913eebae1c32347db..98d0a39fa0d02c892ed77697a5f2ccb704ae8788 100644 (file)
 
 - name: get client cephx keys
   copy:
-    dest: "{{ item.source }}"
+    dest: "{{ item.source }}"
     content: "{{ item.content | b64decode }}"
     mode: "{{ item.item.get('mode', '0600') }}"
     owner: "{{ ceph_uid }}"
index 632ce815c514e5bb15dd0c5133737abf092f72ba..14307a6be295c8cefc464da7ad752ab245a125a3 100644 (file)
@@ -3,7 +3,7 @@
   shell: >
     test "$({{ hostvars[groups[mon_group_name][0]]['docker_exec_cmd'] | default('') }} ceph --cluster {{ cluster }} -s -f json | python -c 'import sys, json; print(json.load(sys.stdin)["osdmap"]["osdmap"]["num_osds"])')" -gt 0 &&
     test "$({{ hostvars[groups[mon_group_name][0]]['docker_exec_cmd'] | default('') }} ceph --cluster {{ cluster }} -s -f json | python -c 'import sys, json; print(json.load(sys.stdin)["osdmap"]["osdmap"]["num_osds"])')" =
-    "$({{ hostvars[groups[mon_group_name][0]]['docker_exec_cmd'] | default('') }} ceph --cluster {{ cluster }} -s -f json | python -c 'import sys, json; print(json.load(sys.stdin)["osdmap"]["osdmap"]["num_up_osds"])')"
+    "$({{ hostvars[groups[mon_group_name][0]]['docker_exec_cmd'] | default('') }} ceph --cluster {{ cluster }} -s -f json | python -c 'import sys, json; print(json.load(sys.stdin)["osdmap"]["osdmap"]["num_up_osds"])')"
   register: wait_for_all_osds_up
   retries: "{{ nb_retry_wait_osd_up }}"
   delay: "{{ delay_wait_osd_up }}"
@@ -85,7 +85,7 @@
 
 - name: copy to other mons the openstack cephx key(s)
   copy:
-    src: "{{ fetch_directory }}/{{ fsid }}/etc/ceph/{{ cluster }}.{{ item.1.name }}.keyring"
+    src: "{{ fetch_directory }}/{{ fsid }}/etc/ceph/{{ cluster }}.{{ item.1.name }}.keyring"
     dest: "/etc/ceph/{{ cluster }}.{{ item.1.name }}.keyring"
     owner: "{{ ceph_uid }}"
     group: "{{ ceph_uid }}"