mirror of https://github.com/ceph/ceph-ansible.git
lint: variables should have spaces before and after
Fix ansible lint 206 error: [206] Variables should have spaces before and after: {{ var_name }} Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/6060/head
parent
5450de58b3
commit
9fba6eecfa
|
@ -270,7 +270,7 @@
|
|||
|
||||
- name: stop ceph mgrs with systemd
|
||||
service:
|
||||
name: ceph-mgr@{{ ansible_hostname}}
|
||||
name: ceph-mgr@{{ ansible_hostname }}
|
||||
state: stopped
|
||||
enabled: no
|
||||
failed_when: false
|
||||
|
@ -396,7 +396,7 @@
|
|||
|
||||
- name: stop ceph-osd with systemd
|
||||
service:
|
||||
name: ceph-osd@{{item}}
|
||||
name: ceph-osd@{{ item }}
|
||||
state: stopped
|
||||
enabled: no
|
||||
with_items: "{{ osd_ids.stdout_lines }}"
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
- iscsigws
|
||||
become: yes
|
||||
vars:
|
||||
- igw_purge_type: "{{hostvars['localhost']['igw_purge_type']}}"
|
||||
- igw_purge_type: "{{ hostvars['localhost']['igw_purge_type'] }}"
|
||||
|
||||
tasks:
|
||||
- name: stopping and disabling iscsi daemons
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
- name: get total number of mgrs in cluster
|
||||
block:
|
||||
- name: save mgr dump output
|
||||
command: "{{ container_exec_cmd | default('') }} ceph --cluster {{cluster}} mgr dump -f json"
|
||||
command: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} mgr dump -f json"
|
||||
register: mgr_dump
|
||||
|
||||
- name: get active and standbys mgr list
|
||||
|
|
|
@ -180,7 +180,7 @@
|
|||
|
||||
- name: add pkname information in ceph_osd_data_json
|
||||
set_fact:
|
||||
ceph_osd_data_json: "{{ ceph_osd_data_json | default({}) | combine({item.item[2]: {'pkname_data': '/dev/' + item.stdout}}, recursive=True) }}"
|
||||
ceph_osd_data_json: "{{ ceph_osd_data_json | default({}) | combine({item.item[2]: {'pkname_data': '/dev/' + item.stdout }}, recursive=True) }}"
|
||||
loop: "{{ parent_device_data_part.results }}"
|
||||
when: item.skipped is undefined
|
||||
|
||||
|
|
|
@ -133,5 +133,5 @@
|
|||
delegate_to: "{{ rgw_host }}"
|
||||
post_tasks:
|
||||
- name: show ceph health
|
||||
command: "{{ container_exec_cmd | default('')}} ceph --cluster {{ cluster }} -s"
|
||||
command: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} -s"
|
||||
changed_when: false
|
||||
|
|
|
@ -248,7 +248,7 @@
|
|||
command: "systemctl disable --runtime {{ item }}"
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
with_items: "{{ running_osds.stdout_lines | default([])}}"
|
||||
with_items: "{{ running_osds.stdout_lines | default([]) }}"
|
||||
when: item.startswith('ceph-osd@')
|
||||
|
||||
- name: stop/disable/mask non-containerized ceph osd(s) (if any)
|
||||
|
@ -256,7 +256,7 @@
|
|||
name: "{{ item }}"
|
||||
state: stopped
|
||||
enabled: no
|
||||
with_items: "{{ running_osds.stdout_lines | default([])}}"
|
||||
with_items: "{{ running_osds.stdout_lines | default([]) }}"
|
||||
when: running_osds != []
|
||||
|
||||
- name: remove old ceph-osd systemd units
|
||||
|
|
Loading…
Reference in New Issue