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)
pull/3852/head
Andrey Zhelnin 2018-12-07 14:41:30 +01:00 committed by Kubernetes Prow Robot
parent 7da9880ff7
commit 1712314fab
1 changed files with 14 additions and 0 deletions

View File

@ -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: