diff --git a/roles/0-init/tasks/create_iiab_ini.yml b/roles/0-init/tasks/create_iiab_ini.yml index b4cc742ec..5e5920545 100644 --- a/roles/0-init/tasks/create_iiab_ini.yml +++ b/roles/0-init/tasks/create_iiab_ini.yml @@ -4,6 +4,10 @@ path: "{{ iiab_ini_file }}" state: touch +- name: Run command 'dpkg --print-architecture' to identify OS architecture (CPU arch as revealed by ansible_archicture ~= ansible_machine is NOT enough!) + command: dpkg --print-architecture + register: dpkg_arch + - name: Add 'location' variable values to {{ iiab_ini_file }} ini_file: path: "{{ iiab_ini_file }}" @@ -44,4 +48,4 @@ - option: devicetree_model value: "{{ devicetree_model }}" - option: dpkg_arch - value: "{{ dpkg_arch }}" + value: "{{ dpkg_arch.stdout }}" diff --git a/roles/0-init/tasks/main.yml b/roles/0-init/tasks/main.yml index d4283dcf7..4c02c6ca5 100644 --- a/roles/0-init/tasks/main.yml +++ b/roles/0-init/tasks/main.yml @@ -15,7 +15,6 @@ os_ver: "{{ ansible_local.local_facts.os_ver }}" python_version: "{{ ansible_local.local_facts.python_version }}" php_version: "{{ ansible_local.local_facts.php_version }}" - dpkg_arch: "{{ ansible_local.local_facts.dpkg_arch }}" # Initialize /etc/iiab/iiab.ini writing the 'location' and 'version' sections # once and only once, to preserve the install date and git hash.