Skip to content

Commit b9124cb

Browse files
fix: update deprecated ansible_ vars in metadata
1 parent f431439 commit b9124cb

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

meta/argument_specs.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ argument_specs:
1818

1919
rke2_type:
2020
type: str
21-
choices: ['server', 'agent']
21+
choices: ["server", "agent"]
2222
default: "{{ 'server' if inventory_hostname in groups[rke2_servers_group_name] else 'agent' if inventory_hostname in groups[rke2_agents_group_name] }}"
2323
description: "The node type - server or agent"
2424

@@ -39,7 +39,7 @@ argument_specs:
3939

4040
rke2_api_ip:
4141
type: str
42-
default: "{{ hostvars[groups[rke2_servers_group_name].0]['ansible_default_ipv4']['address'] | default(hostvars[groups[rke2_servers_group_name].0]['ansible_default_ipv6']['address'] ) }}"
42+
default: "{{ hostvars[groups[rke2_servers_group_name].0].ansible_facts['default_ipv4']['address'] | default(hostvars[groups[rke2_servers_group_name].0].ansible_facts['default_ipv6']['address'] ) }}"
4343
description: "Kubernetes API and RKE2 registration IP address. The default Address is the IPv4 of the Server/Master node. In HA mode choose a static IP which will be set as VIP in keepalived. Or if the keepalived is disabled, use IP address of your LB."
4444

4545
rke2_api_private_ip:
@@ -197,7 +197,12 @@ argument_specs:
197197

198198
rke2_artifact:
199199
type: list
200-
default: ["sha256sum-{{ rke2_architecture }}.txt", "rke2.linux-{{ rke2_architecture }}.tar.gz", "rke2-images.linux-{{ rke2_architecture }}.tar.zst"]
200+
default:
201+
[
202+
"sha256sum-{{ rke2_architecture }}.txt",
203+
"rke2.linux-{{ rke2_architecture }}.tar.gz",
204+
"rke2-images.linux-{{ rke2_architecture }}.tar.zst",
205+
]
201206
elements: str
202207
description: "Airgap required artifacts"
203208

@@ -213,7 +218,7 @@ argument_specs:
213218

214219
rke2_airgap_implementation:
215220
type: str
216-
choices: ['download', 'copy', 'exists']
221+
choices: ["download", "copy", "exists"]
217222
default: "download"
218223
description: "Airgap implementation type - download, copy or exists"
219224

@@ -235,7 +240,7 @@ argument_specs:
235240

236241
rke2_architecture:
237242
type: str
238-
choices: ['amd64', 's390x']
243+
choices: ["amd64", "s390x"]
239244
default: "amd64"
240245

241246
description: "Architecture to be downloaded, currently there are releases for amd64 and s390x"

0 commit comments

Comments
 (0)