您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。

7 年前
7 年前
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ---
  2. - name: fish package
  3. package:
  4. name: fish
  5. - name: fish config directory
  6. file:
  7. path: /root/.config/fish/conf.d/
  8. state: directory
  9. - name: fish config files
  10. template:
  11. src: "{{ item }}.fish.j2"
  12. dest: /root/.config/fish/conf.d/{{ item }}.fish
  13. with_items:
  14. - root-shell-aliases
  15. - name: fish shell
  16. user:
  17. name: root
  18. shell: /usr/bin/fish
  19. - name: fetch fish history
  20. fetch:
  21. src: /root/.local/share/fish/fish_history
  22. dest: host_files
  23. - name: ssh key
  24. user:
  25. name: root
  26. generate_ssh_key: yes
  27. ssh_key_type: ed25519
  28. when: root_ssh_key
  29. - name: password
  30. user:
  31. name: root
  32. password: "{{ root_password }}"
  33. when: root_password is defined
  34. - file:
  35. path: /root/.config/fish/conf.d/title.fish
  36. state: absent