Skip to content

Commit c26bc93

Browse files
author
William Graef
committed
Fix reported lint issues
1 parent 70989a6 commit c26bc93

File tree

7 files changed

+29
-28
lines changed

7 files changed

+29
-28
lines changed

olvm/create_instance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@
232232
delay: 30
233233
until: result is not failed
234234

235-
- name: Set private subnet route table id
235+
- name: Set public subnet route table id
236236
ansible.builtin.set_fact:
237237
my_public_rt_id: "{{ result.route_table.id }}"
238238

olvm/ovirt_add_hosts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- oci_vars.yml
1212
vars:
1313
ansible_python_interpreter: "/usr/bin/{{ ovirt_python_version }}"
14-
14+
1515
tasks:
1616

1717
- name: Download ca-cert

olvm/ovirt_add_logical_network.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@
6565
state: absent
6666
ovirt_auth: "{{ ovirt_auth }}"
6767
tags:
68-
- always
68+
- always

olvm/ovirt_add_storage_domain.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,33 @@
1111
vars_files:
1212
- default_vars.yml
1313
- oci_vars.yml
14-
become: yes
14+
become: true
1515
gather_facts: false
1616

1717
tasks:
1818

19-
- name: Get multipath disk information
20-
ansible.builtin.command: multipath -ll
21-
register: multipath_output
22-
run_once: true
19+
- name: Get multipath disk information # noqa: run-once[task]
20+
ansible.builtin.command: multipath -ll
21+
register: multipath_output
22+
changed_when: multipath_output != 0
23+
run_once: true
2324

24-
- name: Extract LUN IDs
25-
ansible.builtin.set_fact:
26-
lun_ids: "{{ multipath_output.stdout_lines | select('search', '^[a-f0-9]') | map('split', ' ') | map(attribute=0) | list }}"
27-
run_once: true
25+
- name: Extract LUN IDs # noqa: run-once[task]
26+
ansible.builtin.set_fact:
27+
lun_ids: "{{ multipath_output.stdout_lines | select('search', '^[a-f0-9]') | map('split', ' ') | map(attribute=0) | list }}"
28+
run_once: true
2829

29-
- name: Display LUN IDs
30-
ansible.builtin.debug:
31-
msg: "LUN IDs: {{ lun_ids }}"
32-
run_once: true
33-
when: debug_enabled
30+
- name: Display LUN IDs # noqa: run-once[task]
31+
ansible.builtin.debug:
32+
msg: "LUN IDs: {{ lun_ids }}"
33+
run_once: true
34+
when: debug_enabled
3435

35-
- name: "Add lun_ids to dummy host"
36-
ansible.builtin.add_host:
37-
name: "LUN_IDS_HOLDER"
38-
lun_ids: "{{ lun_ids }}"
39-
run_once: true
36+
- name: "Add lun_ids to dummy host" # noqa: run-once[task]
37+
ansible.builtin.add_host:
38+
name: "LUN_IDS_HOLDER"
39+
lun_ids: "{{ lun_ids }}"
40+
run_once: true
4041

4142
- name: Add storage domain
4243
hosts: engine
@@ -45,7 +46,7 @@
4546
- oci_vars.yml
4647
vars:
4748
ansible_python_interpreter: "/usr/bin/{{ ovirt_python_version }}"
48-
49+
4950
tasks:
5051

5152
- name: Connect to the OLVM Engine application # noqa: syntax-check[unknown-module]
@@ -71,7 +72,7 @@
7172
data_center: Default
7273
domain_function: data
7374
fcp:
74-
lun_id: "{{ hostvars['LUN_IDS_HOLDER']['lun_ids'][ ansible_loop.index0 ] }}"
75+
lun_id: "{{ hostvars['LUN_IDS_HOLDER']['lun_ids'][ansible_loop.index0] }}"
7576
host: "olkvm0{{ ansible_loop.index0 + 1 }}"
7677
name: "amd-storage-domain-0{{ ansible_loop.index0 + 1 }}"
7778
timeout: 2200
@@ -85,4 +86,4 @@
8586
state: absent
8687
ovirt_auth: "{{ ovirt_auth }}"
8788
tags:
88-
- always
89+
- always

olvm/ovirt_check_hosts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
- name: Print host status
5656
ansible.builtin.debug:
57-
msg: "Host: {{ host_info.results[0].ovirt_hosts[ ansible_loop.index0 ].name }} Status: {{ host_info.results[0].ovirt_hosts[ ansible_loop.index0 ].status }}"
57+
msg: "Host: {{ host_info.results[0].ovirt_hosts[ansible_loop.index0].name }} Status: {{ host_info.results[0].ovirt_hosts[ansible_loop.index0].status }}"
5858
loop: "{{ groups['kvm'] }}"
5959
loop_control:
6060
extended: true

olvm/ovirt_create_vm_from_template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@
7676
state: absent
7777
ovirt_auth: "{{ ovirt_auth }}"
7878
tags:
79-
- always
79+
- always

olvm/ovirt_import_template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
delegate_to: "{{ groups['kvm'][0] }}"
3232

3333
- name: Import OVA template # noqa: syntax-check[unknown-module]
34-
ovirt_template:
34+
ovirt.ovirt.ovirt_template:
3535
auth:
3636
url: "{{ olvm_engine_url }}"
3737
username: "{{ olvm_username }}"

0 commit comments

Comments
 (0)