25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

26 lines
585 B

  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