Skip to content

Commit cc06a25

Browse files
authored
Give aws_machine_type a more meaningful name (#325)
Signed-off-by: Andrea Manzini <andrea.manzini@suse.com>
1 parent 973c518 commit cc06a25

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

ansible/playbooks/sap-hana-storage.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
tasks:
1313
- name: Load AWS disk configuration for R4 instances
1414
ansible.builtin.include_vars: ./vars/aws_r4_hana_storage_profile.yaml
15-
when: cloud_platform_is_aws and aws_machine_type
15+
when: cloud_platform_is_aws and aws_machine_type_is_r4
1616

1717
- name: Load AWS disk configuration for Non R4 instances
1818
ansible.builtin.include_vars: ./vars/aws_hana_storage_profile.yaml
19-
when: cloud_platform_is_aws and not aws_machine_type
19+
when: cloud_platform_is_aws and not aws_machine_type_is_r4
2020

2121
- name: Load Azure disk configuration
2222
ansible.builtin.include_vars: ./vars/azure_hana_storage_profile.yaml

ansible/playbooks/tasks/detect-cloud-platform.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
cloud_platform_is_aws: false
55
cloud_platform_is_gcp: false
66
cloud_platform_is_azure: false
7-
aws_machine_type: false
7+
aws_machine_type_is_r4: false
88

99
- name: "Detect AWS"
1010
block:
@@ -29,7 +29,7 @@
2929

3030
- name: Set AWS machine type fact
3131
ansible.builtin.set_fact:
32-
aws_machine_type: true
32+
aws_machine_type_is_r4: true
3333
when:
3434
- cloud_platform_name is undefined or cloud_platform_name | length == 0 or cloud_platform_name == "aws"
3535
- probe_aws_1.stdout is match(".*amazon")

ansible/playbooks/tasks/iscsi-server-sbd-prep.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040

4141
- name: Load AWS disk configuration
4242
ansible.builtin.include_vars: ./vars/aws_iscsi_storage_profile.yaml
43-
when: cloud_platform_is_aws and not aws_machine_type
43+
when: cloud_platform_is_aws and not aws_machine_type_is_r4
4444

4545
- name: Load AWS disk configuration for R4 instance
4646
ansible.builtin.include_vars: ./vars/aws_r4_iscsi_storage_profile.yaml
47-
when: cloud_platform_is_aws and aws_machine_type
47+
when: cloud_platform_is_aws and aws_machine_type_is_r4
4848

4949

5050
- name: Load Azure disk configuration

0 commit comments

Comments
 (0)