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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

31 lines
702B

  1. ---
  2. - name: fish package
  3. package:
  4. name: fish
  5. when: not root_target_directory is defined
  6. - name: fish config directory
  7. file:
  8. path: "{{ root_target_directory | default('') }}/root/.config/fish/conf.d/"
  9. state: directory
  10. - name: fish config files
  11. template:
  12. src: "{{ item }}.fish.j2"
  13. dest: "{{ root_target_directory | default('') }}/root/.config/fish/conf.d/{{ item }}.fish"
  14. with_items:
  15. - root-shell-aliases
  16. - name: fish shell
  17. user:
  18. name: root
  19. shell: /usr/bin/fish
  20. when: not root_target_directory is defined
  21. - name: fetch fish history
  22. fetch:
  23. src: /root/.local/share/fish/fish_history
  24. dest: host_files
  25. when: not root_target_directory is defined