From f2b74880e8c59a22ec864bf746e1f80f41d3d5ec Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 4 Oct 2022 19:49:19 -0400 Subject: [PATCH] kiwix/defaults/main.yml: Clarify ansible_machine safer than ansible_architecture --- roles/kiwix/defaults/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/kiwix/defaults/main.yml b/roles/kiwix/defaults/main.yml index 21737efc3..acfa7a08b 100644 --- a/roles/kiwix/defaults/main.yml +++ b/roles/kiwix/defaults/main.yml @@ -33,8 +33,10 @@ kiwix_arch_dict: armv7l: armhf aarch64: armhf -# ansible_architecture can also work: +# ansible_architecture might also work, if not quite as well: # https://stackoverflow.com/questions/66828315/what-is-the-difference-between-ansible-architecture-and-ansible-machine-on-a/66828837#66828837 +# CLAIM: 'ansible_machine might be "i686", whereas ansible_architecture on the same host would be "i386"' +# https://stackoverflow.com/questions/44713880/how-do-i-make-decision-based-on-arch-in-ansible-playbooks/44714226#44714226 kiwix_arch: "{{ kiwix_arch_dict[ansible_machine] | default('unsupported') }}" # Latest official kiwix-tools release, per Kiwix permalink redirects: