mirror of
https://github.com/ruanbekker/rpi-ansible.git
synced 2025-05-23 23:21:31 +02:00
working bootsplash and bootwait options
This commit is contained in:
parent
c9155a967c
commit
8a50e960cc
@ -27,7 +27,13 @@
|
|||||||
|
|
||||||
- name: set bootwait option
|
- name: set bootwait option
|
||||||
command: "raspi-config nonint do_boot_wait {{ 1 if not macaddrs[my_macaddr].enable_bootwait else 0 }}"
|
command: "raspi-config nonint do_boot_wait {{ 1 if not macaddrs[my_macaddr].enable_bootwait else 0 }}"
|
||||||
when: macaddrs[my_macaddr].enable_bootwait != raspi_bootwait_enabled
|
when: "'enable_bootwait' in macaddrs[my_macaddr] and macaddrs[my_macaddr].enable_bootwait != raspi_bootwait_enabled"
|
||||||
|
tags:
|
||||||
|
- raspi
|
||||||
|
|
||||||
|
- name: set boot splash option
|
||||||
|
command: "raspi-config nonint do_boot_splash {{ 1 if not macaddrs[my_macaddr].enable_bootsplash else 0 }}"
|
||||||
|
when: "'enable_bootsplash' in macaddrs[my_macaddr] and macaddrs[my_macaddr].enable_bootsplash != raspi_bootsplash_enabled"
|
||||||
tags:
|
tags:
|
||||||
- raspi
|
- raspi
|
||||||
|
|
||||||
|
@ -39,6 +39,14 @@
|
|||||||
tags:
|
tags:
|
||||||
- raspi
|
- raspi
|
||||||
|
|
||||||
|
- name: get splash screen setting
|
||||||
|
shell: "raspi-config nonint get_boot_splash" # 0 == "wait"; 1 == "don't wait"
|
||||||
|
register: raspi_boot_splash
|
||||||
|
changed_when: False
|
||||||
|
check_mode: no
|
||||||
|
tags:
|
||||||
|
- raspi
|
||||||
|
|
||||||
- name: get wifi country
|
- name: get wifi country
|
||||||
shell: "raspi-config nonint get_wifi_country"
|
shell: "raspi-config nonint get_wifi_country"
|
||||||
register: raspi_wifi_country
|
register: raspi_wifi_country
|
||||||
@ -183,6 +191,7 @@
|
|||||||
raspi_gui_enabled: "{{ raspi_boot_gui.stdout != '0' }}"
|
raspi_gui_enabled: "{{ raspi_boot_gui.stdout != '0' }}"
|
||||||
raspi_autologin_enabled: "{{ raspi_noautologin.stdout == '0' }}"
|
raspi_autologin_enabled: "{{ raspi_noautologin.stdout == '0' }}"
|
||||||
raspi_bootwait_enabled: "{{ raspi_boot_nowait.stdout == '0' }}"
|
raspi_bootwait_enabled: "{{ raspi_boot_nowait.stdout == '0' }}"
|
||||||
|
raspi_bootsplash_enabled: "{{ raspi_boot_splash.stdout == '0' }}"
|
||||||
raspi_camera_enabled: "{{ raspi_camera_disabled.stdout == '0' }}"
|
raspi_camera_enabled: "{{ raspi_camera_disabled.stdout == '0' }}"
|
||||||
raspi_ssh_enabled: "{{ raspi_ssh_disabled.stdout == '0' }}"
|
raspi_ssh_enabled: "{{ raspi_ssh_disabled.stdout == '0' }}"
|
||||||
raspi_vnc_enabled: "{{ raspi_vnc_disabled.stdout == '0' }}"
|
raspi_vnc_enabled: "{{ raspi_vnc_disabled.stdout == '0' }}"
|
||||||
|
@ -8,6 +8,7 @@ macaddrs:
|
|||||||
enable_gui: True
|
enable_gui: True
|
||||||
enable_autologin: False
|
enable_autologin: False
|
||||||
enable_bootwait: False
|
enable_bootwait: False
|
||||||
|
enable_bootsplash: False
|
||||||
enable_camera: False
|
enable_camera: False
|
||||||
enable_vnc: False
|
enable_vnc: False
|
||||||
enable_spi: False
|
enable_spi: False
|
||||||
@ -24,6 +25,7 @@ macaddrs:
|
|||||||
enable_gui: False
|
enable_gui: False
|
||||||
enable_autologin: False
|
enable_autologin: False
|
||||||
enable_bootwait: True
|
enable_bootwait: True
|
||||||
|
enable_bootsplash: False
|
||||||
enable_camera: False
|
enable_camera: False
|
||||||
enable_vnc: False
|
enable_vnc: False
|
||||||
enable_spi: False
|
enable_spi: False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user