]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
main: use `ansible_facts` for `architecture`
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 24 Mar 2021 08:29:28 +0000 (09:29 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 24 Mar 2021 09:52:55 +0000 (10:52 +0100)
commit f6a0e95e51798316fce5e82b2463ff62396a681a reverted the change made
by a7f2fa73e63e69dba2e41aaac9732397eec437c9.

This commit bring back this change.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
site-container.yml.sample
site.yml.sample

index 8a5af7667e314d8cfd8b26038fd6bbf269c56bc8..0e232d38059535b112230824b943fb5790b7ae34 100644 (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:
index ebd73a44443e726a3696487eb0458754514a5cee..e748e4c5f8d90a8d4304b50b3478fce598182971 100644 (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