raspbian.yml 853 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # https://www.raspberrypi.org/documentation/configuration/uart.md
  2. - name: enable uart
  3. become: true
  4. lineinfile:
  5. path: /boot/config.txt
  6. regexp: "^enable_uart="
  7. line: enable_uart=1
  8. backup: true
  9. - name: disable bluetooth
  10. become: true
  11. lineinfile:
  12. path: /boot/config.txt
  13. regexp: "^dtoverlay="
  14. line: dtoverlay=disable-bt
  15. backup: true
  16. - name: hidden splash message
  17. become: true
  18. lineinfile:
  19. path: /boot/config.txt
  20. regexp: "^disable_splash="
  21. line: disable_splash=1
  22. backup: true
  23. - name: disable debug port & logo
  24. become: true
  25. ansible.builtin.replace:
  26. path: /boot/cmdline.txt
  27. regexp: "console=serial0,115200"
  28. replace: "loglevel=3 logo.nologo"
  29. backup: true
  30. - name: disable hciuart service
  31. become: true
  32. ansible.builtin.systemd:
  33. name: hciuart
  34. enabled: no
  35. masked: yes