system.yml 797 B

123456789101112131415161718192021222324252627282930
  1. ---
  2. ## Disable uart
  3. - name: Disable uart
  4. ansible.builtin.lineinfile:
  5. path: /boot/firmware/config.txt
  6. regexp: '^enable_uart='
  7. line: enable_uart=0
  8. notify: "Reboot Server"
  9. when: board == "pi4"
  10. # Always Fix fsck
  11. - name: Fix FSCK
  12. shell: cat /boot/firmware/cmdline.txt | grep -c 'fsck.repair=' || true
  13. register: pi_fsck_repair
  14. changed_when: false # Do not mark as 'changed'
  15. when: board == "pi4"
  16. - name: Add cpuset cgroup
  17. replace: dest=/boot/firmware/cmdline.txt regexp='(\s*)$' replace=' fsck.repair=yes'
  18. when: board == "pi4" and pi_fsck_repair.stdout == "0"
  19. notify: "Reboot Server"
  20. # avahi
  21. - name: Avahi Domain
  22. community.general.ini_file:
  23. path: /etc/avahi/avahi-daemon.conf
  24. section: server
  25. option: domain-name
  26. value: local
  27. notify: "Reboot Server"