25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.yml 789B

6 년 전
6 년 전
6 년 전
6 년 전
6 년 전
123456789101112131415161718192021222324252627282930
  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