1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

create_iiab_ini.yml: dpkg_foreign_arch, clarifs, typos

This commit is contained in:
A Holt 2023-03-31 22:57:36 -04:00 committed by GitHub
parent 4eca25a1f7
commit 902e377c68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,14 +4,18 @@
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!)
- name: Run command 'dpkg --print-architecture' to identify OS architecture (CPU arch as revealed by ansible_architecture ~= ansible_machine is NOT enough!)
command: dpkg --print-architecture
register: dpkg_arch
- name: Run command 'dpkg --print-foreign-architectures' (secondary OS arch, if available)
command: dpkg --print-foreign-architectures
register: dpkg_foreign_arch
- name: Add 'location' variable values to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}"
section: location
section: initial-location
option: "{{ item.option }}"
value: "{{ item.value | string }}"
with_items:
@ -23,7 +27,7 @@
- name: Add 'version' variable values to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}"
section: version
section: initial-version
option: "{{ item.option }}"
value: "{{ item.value | string }}"
with_items:
@ -31,6 +35,10 @@
value: "{{ ansible_distribution }}"
- option: arch
value: "{{ ansible_architecture }}"
- option: dpkg_arch
value: "{{ dpkg_arch.stdout }}"
- option: dpkg_foreign_arch
value: "{{ dpkg_foreign_arch.stdout }}"
- option: iiab_base_ver
value: "{{ iiab_base_ver }}"
- option: iiab_remote_url
@ -47,5 +55,3 @@
value: "{{ rpi_model }}"
- option: devicetree_model
value: "{{ devicetree_model }}"
- option: dpkg_arch
value: "{{ dpkg_arch.stdout }}"