]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
lint: variables should have spaces before and after
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 2 Oct 2020 11:05:01 +0000 (13:05 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 16 Dec 2020 13:05:45 +0000 (14:05 +0100)
Fix ansible lint 206 error:

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

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 9fba6eecfa5de7415ebe6ba6a1ab496412de8eed)

infrastructure-playbooks/purge-cluster.yml
infrastructure-playbooks/purge-iscsi-gateways.yml
infrastructure-playbooks/shrink-mgr.yml
infrastructure-playbooks/shrink-osd.yml
infrastructure-playbooks/shrink-rgw.yml
infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml

index 3320a5c9ef3ace73aa089293288c8cda0cf2cc43..8f503a54e8bd1203d4e499161e308dd400a3b8a3 100644 (file)
 
   - name: stop ceph mgrs with systemd
     service:
-      name: ceph-mgr@{{ ansible_hostname}}
+      name: ceph-mgr@{{ ansible_hostname }}
       state: stopped
       enabled: no
     failed_when: false
 
   - 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 }}"
index 96b632a9eac3f9934f749d4c9779ab7b680c420e..9c478736e7900bca3a9104a04699fc364ed59dfa 100644 (file)
@@ -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
index c4fbc0f900476ce382e4e23241e511e2aa7e0a0e..2f77662fceb151e7e395204c9ec7b895facebf1a 100644 (file)
@@ -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
index c2d7dddb2e8ae169b267352097dcd904cd471b58..9c0454db6f65f63664524eb855514843307b57d9 100644 (file)
 
     - 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
 
index 219ae310da2f5e0f396ecd2987d943154e09f53f..8c0902b6a9ea69deae043cf9507c7fb84c06b8f0 100644 (file)
       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
index 199169ac352d894fc66441881f4ddb8ed086bc73..7abbb0004f9f82fbae0005f02834880a1479fd93 100644 (file)
       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)
         name: "{{ item }}"
         state: stopped
         enabled: no
-      with_items: "{{ running_osds.stdout_lines | default([])}}"
+      with_items: "{{ running_osds.stdout_lines | default([]) }}"
       when: running_osds != []
 
     - name: disable ceph.target