main: use `ansible_facts` for `architecture`

commit f6a0e95e51 reverted the change made
by a7f2fa73e6.

This commit bring back this change.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/6378/head
Guillaume Abrioux 2021-03-24 09:29:28 +01:00
parent c90b0985e5
commit 55bafee765
2 changed files with 2 additions and 2 deletions

View File

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

View File

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