Skip to content

Commit 5a426a8

Browse files
committed
Resolving lint issues on scaleup and upgrade playbooks
1 parent fc23779 commit 5a426a8

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

playbooks/scaleup.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
connection: local
55
gather_facts: no
66
tasks:
7-
- import_role:
8-
name: openshift_node
9-
tasks_from: scaleup_checks.yml
7+
- import_role:
8+
name: openshift_node
9+
tasks_from: scaleup_checks.yml
1010

1111
- name: Pre-scaleup checks
1212
hosts: new_workers
1313
tasks:
14-
- import_role:
15-
name: openshift_node
16-
tasks_from: version_checks.yml
14+
- import_role:
15+
name: openshift_node
16+
tasks_from: version_checks.yml
1717

1818
- name: install nodes
1919
hosts: new_workers
2020
roles:
21-
- openshift_node
21+
- openshift_node

playbooks/upgrade.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44
connection: local
55
gather_facts: no
66
tasks:
7-
- name: Ensure [workers] group is populated
8-
fail:
9-
msg: >
10-
Detected no workers in inventory. Please add hosts to the
11-
workers host group to upgrade nodes
12-
when: groups.workers | default([]) | length == 0
7+
- name: Ensure [workers] group is populated
8+
fail:
9+
msg: >
10+
Detected no workers in inventory. Please add hosts to the
11+
workers host group to upgrade nodes
12+
when: groups.workers | default([]) | length == 0
1313

1414
- name: Pre-upgrade checks
1515
hosts: workers
1616
tasks:
17-
- import_role:
18-
name: openshift_node
19-
tasks_from: version_checks.yml
17+
- import_role:
18+
name: openshift_node
19+
tasks_from: version_checks.yml
2020

2121
- name: upgrade nodes
2222
hosts: workers
2323
serial: 1
2424
tasks:
25-
- import_role:
26-
name: openshift_node
27-
tasks_from: upgrade.yml
25+
- import_role:
26+
name: openshift_node
27+
tasks_from: upgrade.yml

roles/openshift_node/tasks/version_checks.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
fail:
2121
msg: "As of v4.10, RHEL nodes must be at least version 8.4"
2222
when:
23-
- l_cluster_version is version('4.10', '>=')
24-
- ansible_facts['distribution'] == "RedHat"
25-
- ansible_facts['distribution_version'] is version('8.4', '<')
23+
- l_cluster_version is version('4.10', '>=')
24+
- ansible_facts['distribution'] == "RedHat"
25+
- ansible_facts['distribution_version'] is version('8.4', '<')

0 commit comments

Comments
 (0)