1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

kiwix/defaults/main.yml: Clarify ansible_machine safer than ansible_architecture

This commit is contained in:
A Holt 2022-10-04 19:49:19 -04:00 committed by GitHub
parent 8643285dc9
commit f2b74880e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,8 +33,10 @@ kiwix_arch_dict:
armv7l: armhf armv7l: armhf
aarch64: 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 # 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') }}" kiwix_arch: "{{ kiwix_arch_dict[ansible_machine] | default('unsupported') }}"
# Latest official kiwix-tools release, per Kiwix permalink redirects: # Latest official kiwix-tools release, per Kiwix permalink redirects: