From 55bafee765b359bcf8a5739b6a32e6c1394ae89a Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 24 Mar 2021 09:29:28 +0100 Subject: [PATCH] main: use `ansible_facts` for `architecture` commit f6a0e95e51798316fce5e82b2463ff62396a681a reverted the change made by a7f2fa73e63e69dba2e41aaac9732397eec437c9. This commit bring back this change. Signed-off-by: Guillaume Abrioux --- site-container.yml.sample | 2 +- site.yml.sample | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site-container.yml.sample b/site-container.yml.sample index 8a5af7667..0e232d380 100644 --- a/site-container.yml.sample +++ b/site-container.yml.sample @@ -60,7 +60,7 @@ name: "{{ item }}" groups: _filtered_clients with_items: "{{ groups.get(client_group_name, []) | intersect(ansible_play_batch) }}" - when: (hostvars[item]['ansible_architecture'] == 'x86_64') or (not containerized_deployment | bool) + when: (hostvars[item]['ansible_facts']['architecture'] == 'x86_64') or (not containerized_deployment | bool) tags: [with_pkg, fetch_container_image] - import_role: diff --git a/site.yml.sample b/site.yml.sample index ebd73a444..e748e4c5f 100644 --- a/site.yml.sample +++ b/site.yml.sample @@ -64,7 +64,7 @@ name: "{{ item }}" groups: _filtered_clients with_items: "{{ groups.get(client_group_name, []) | intersect(ansible_play_batch) }}" - when: (hostvars[item]['ansible_architecture'] == 'x86_64') or (not containerized_deployment | bool) + when: (hostvars[item]['ansible_facts']['architecture'] == 'x86_64') or (not containerized_deployment | bool) - import_role: name: ceph-facts -- 2.39.5