25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

40 lines
672B

  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: ssh key
  20. user:
  21. name: root
  22. generate_ssh_key: yes
  23. ssh_key_type: ed25519
  24. when: root_ssh_key
  25. - name: password
  26. user:
  27. name: root
  28. password: "{{ root_password }}"
  29. when: root_password is defined
  30. - file:
  31. path: /root/.config/fish/conf.d/title.fish
  32. state: absent