Skip to content

Commit

Permalink
lint: variables should have spaces before and after
Browse files Browse the repository at this point in the history
Fix ansible lint 206 error:

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

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
  • Loading branch information
guits committed Nov 23, 2020
1 parent 5450de5 commit 9fba6ee
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions infrastructure-playbooks/purge-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}"
Expand Down
2 changes: 1 addition & 1 deletion infrastructure-playbooks/purge-iscsi-gateways.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion infrastructure-playbooks/shrink-mgr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion infrastructure-playbooks/shrink-osd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion infrastructure-playbooks/shrink-rgw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,15 @@
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)
systemd:
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
Expand Down

0 comments on commit 9fba6ee

Please sign in to comment.