Browse Source

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 6 years ago
committed by Kubernetes Prow Robot
parent
commit
1712314fab
1 changed files with 14 additions and 0 deletions
  1. 14
      roles/etcd/tasks/main.yml

14
roles/etcd/tasks/main.yml

@ -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…
Cancel
Save