You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cleanup.yaml 584 B

4 years ago
12345678910111213141516171819202122232425
  1. ---
  2. - name: Clean apt cache
  3. command: apt clean
  4. become: yes
  5. - name: Clean build directories
  6. ignore_errors: yes
  7. shell: |
  8. for f in $(cat {{ config_dir }}/build.dirs); do
  9. echo "Deleting build dir: $f"
  10. rm -r "$f"
  11. done
  12. - name: Sync Python modules
  13. ignore_errors: yes
  14. shell: ln -s /usr/local/lib/python3/dist-packages/* /usr/lib/python3/dist-packages
  15. - name: Set udev rules
  16. shell: |
  17. for f in $(cat {{ config_dir }}/udev.paths); do
  18. echo "Owning udev rule: $f"
  19. chown pi:pi "$f"
  20. done
  21. udevadm control --reload-rules
  22. udevadm trigger