mirror of https://github.com/ceph/ceph-ansible.git
lint: Fix spaces before and after variables
ansible-lint reports: [206] Variables should have spaces after {{ and before }} Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>pull/3662/head
parent
34c25ef49b
commit
45a7082712
|
@ -115,7 +115,7 @@
|
||||||
|
|
||||||
- name: get client cephx keys
|
- name: get client cephx keys
|
||||||
copy:
|
copy:
|
||||||
dest: "{{ item.source }}"
|
dest: "{{ item.source }}"
|
||||||
content: "{{ item.content | b64decode }}"
|
content: "{{ item.content | b64decode }}"
|
||||||
mode: "{{ item.item.get('mode', '0600') }}"
|
mode: "{{ item.item.get('mode', '0600') }}"
|
||||||
owner: "{{ ceph_uid }}"
|
owner: "{{ ceph_uid }}"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
shell: >
|
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"])')" -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"])')" =
|
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
|
register: wait_for_all_osds_up
|
||||||
retries: "{{ nb_retry_wait_osd_up }}"
|
retries: "{{ nb_retry_wait_osd_up }}"
|
||||||
delay: "{{ delay_wait_osd_up }}"
|
delay: "{{ delay_wait_osd_up }}"
|
||||||
|
@ -85,7 +85,7 @@
|
||||||
|
|
||||||
- name: copy to other mons the openstack cephx key(s)
|
- name: copy to other mons the openstack cephx key(s)
|
||||||
copy:
|
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"
|
dest: "/etc/ceph/{{ cluster }}.{{ item.1.name }}.keyring"
|
||||||
owner: "{{ ceph_uid }}"
|
owner: "{{ ceph_uid }}"
|
||||||
group: "{{ ceph_uid }}"
|
group: "{{ ceph_uid }}"
|
||||||
|
|
Loading…
Reference in New Issue