Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

31 lines
789B

  1. ---
  2. - name: download installer
  3. get_url:
  4. url: "{{ conda_installer_url }}"
  5. dest: "/opt/{{ _conda_installer_filename }}"
  6. checksum: "{{ conda_installer_checksum }}"
  7. mode: 0755
  8. owner: root
  9. group: root
  10. - name: install
  11. command: /opt/{{ _conda_installer_filename }} -b -p {{ conda_directory }}
  12. args:
  13. creates: "{{ conda_directory }}/bin/conda"
  14. - name: update
  15. command: conda update --all --json --quiet
  16. environment:
  17. PATH: /opt/conda/bin:{{ ansible_env.PATH }}
  18. register: _conda_command
  19. failed_when: _conda_command.rc != 0 or not _conda.success
  20. changed_when: _conda.actions is defined
  21. - name: link conda fish
  22. file:
  23. src: "{{ conda_directory }}/etc/fish/conf.d/conda.fish"
  24. dest: /etc/fish/conf.d/conda.fish
  25. state: link
  26. follow: false