mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
commit
6d9c2cf4a0
2 changed files with 22 additions and 8 deletions
|
@ -4,10 +4,18 @@
|
||||||
path: "{{ iiab_ini_file }}"
|
path: "{{ iiab_ini_file }}"
|
||||||
state: touch
|
state: touch
|
||||||
|
|
||||||
|
- 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 }}
|
- name: Add 'location' variable values to {{ iiab_ini_file }}
|
||||||
ini_file:
|
ini_file:
|
||||||
path: "{{ iiab_ini_file }}"
|
path: "{{ iiab_ini_file }}"
|
||||||
section: location
|
section: initial-location
|
||||||
option: "{{ item.option }}"
|
option: "{{ item.option }}"
|
||||||
value: "{{ item.value | string }}"
|
value: "{{ item.value | string }}"
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -19,14 +27,24 @@
|
||||||
- name: Add 'version' variable values to {{ iiab_ini_file }}
|
- name: Add 'version' variable values to {{ iiab_ini_file }}
|
||||||
ini_file:
|
ini_file:
|
||||||
path: "{{ iiab_ini_file }}"
|
path: "{{ iiab_ini_file }}"
|
||||||
section: version
|
section: initial-version
|
||||||
option: "{{ item.option }}"
|
option: "{{ item.option }}"
|
||||||
value: "{{ item.value | string }}"
|
value: "{{ item.value | string }}"
|
||||||
with_items:
|
with_items:
|
||||||
|
- option: os_ver
|
||||||
|
value: "{{ os_ver }}"
|
||||||
- option: distribution
|
- option: distribution
|
||||||
value: "{{ ansible_distribution }}"
|
value: "{{ ansible_facts['distribution'] }}"
|
||||||
- option: arch
|
- option: arch
|
||||||
value: "{{ ansible_architecture }}"
|
value: "{{ ansible_architecture }}"
|
||||||
|
- option: dpkg_arch
|
||||||
|
value: "{{ dpkg_arch.stdout }}"
|
||||||
|
- option: dpkg_foreign_arch
|
||||||
|
value: "{{ dpkg_foreign_arch.stdout }}"
|
||||||
|
- option: rpi_model
|
||||||
|
value: "{{ rpi_model }}"
|
||||||
|
- option: devicetree_model
|
||||||
|
value: "{{ devicetree_model }}"
|
||||||
- option: iiab_base_ver
|
- option: iiab_base_ver
|
||||||
value: "{{ iiab_base_ver }}"
|
value: "{{ iiab_base_ver }}"
|
||||||
- option: iiab_remote_url
|
- option: iiab_remote_url
|
||||||
|
@ -39,7 +57,3 @@
|
||||||
value: "{{ ansible_local.local_facts.iiab_recent_tag }}"
|
value: "{{ ansible_local.local_facts.iiab_recent_tag }}"
|
||||||
- option: install_date
|
- option: install_date
|
||||||
value: "{{ ansible_date_time.iso8601 }}"
|
value: "{{ ansible_date_time.iso8601 }}"
|
||||||
- option: rpi_model
|
|
||||||
value: "{{ rpi_model }}"
|
|
||||||
- option: devicetree_model
|
|
||||||
value: "{{ devicetree_model }}"
|
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
- debug:
|
- debug:
|
||||||
var: mongodb_version
|
var: mongodb_version
|
||||||
|
|
||||||
- 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
|
command: dpkg --print-architecture
|
||||||
register: dpkg_arch
|
register: dpkg_arch
|
||||||
- debug:
|
- debug:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue