您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

26 行
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