Setting host_architecture var (#3846)
Setting host_architecture to allow etcd upgrade working through: ansible-playbook -b -i inventory/sample/hosts.ini cluster.yml --tags=etcd (on other case host_architecture is missing)
This commit is contained in:
parent
7da9880ff7
commit
1712314fab
1 changed files with 14 additions and 0 deletions
|
@ -1,4 +1,18 @@
|
|||
---
|
||||
- set_fact:
|
||||
architecture_groups:
|
||||
x86_64: amd64
|
||||
aarch64: arm64
|
||||
|
||||
- name: ansible_architecture_rename
|
||||
set_fact:
|
||||
host_architecture: >-
|
||||
{%- if ansible_architecture in architecture_groups -%}
|
||||
{{architecture_groups[ansible_architecture]}}
|
||||
{%- else -%}
|
||||
{{ansible_architecture}}
|
||||
{% endif %}
|
||||
|
||||
- include_tasks: check_certs.yml
|
||||
when: cert_management == "script"
|
||||
tags:
|
||||
|
|
Loading…
Reference in a new issue