mirror of
				https://github.com/ruanbekker/rpi-ansible.git
				synced 2025-10-30 22:11:05 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			679 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			679 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| ---
 | |
| - name: get timezone via timedatectl
 | |
|   shell: "timedatectl | grep 'Time zone' | cut -d':' -f2 | cut -d'(' -f1 | sed -Ee 's/(^ *| *$)//g'"
 | |
|   register: linux_tz
 | |
|   changed_when: False
 | |
|   check_mode: no
 | |
| 
 | |
| - name: get locale
 | |
|   shell: "locale | grep ^LANG | cut -d= -f2"
 | |
|   register: linux_locale
 | |
|   changed_when: False
 | |
|   check_mode: no
 | |
| 
 | |
| - name: get x keyboard layout
 | |
|   shell: "localectl | awk '/X11 Layout/ {print $3}'"
 | |
|   register: linux_xkblayout
 | |
|   changed_when: False
 | |
|   check_mode: no
 | |
| 
 | |
| - name: set linux-config facts
 | |
|   set_fact:
 | |
|     linux_tz: "{{ linux_tz.stdout }}"
 | |
|     linux_locale: "{{ linux_locale.stdout }}"
 | |
|     linux_xkblayout: "{{ linux_xkblayout.stdout }}"
 | |
|   check_mode: no
 | 
