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

drop local_facts

This commit is contained in:
Jerry Vonau 2023-03-31 15:55:27 -05:00
parent cc504e3416
commit 4eca25a1f7
2 changed files with 5 additions and 2 deletions

View file

@ -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 }}"

View file

@ -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.