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:
		
							parent
							
								
									4eca25a1f7
								
							
						
					
					
						commit
						902e377c68
					
				
					 1 changed files with 11 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -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 }}"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue