Commit 2cb09033 authored by nanahira's avatar nanahira

install docker-compose from pip3 anytime

parent 68329ecd
Pipeline #14158 failed with stage
in 9 minutes and 49 seconds
......@@ -67,7 +67,7 @@
- name: 安装 Docker (yum)
become: true
yum:
name: docker-ce,docker-ce-cli,containerd.io,docker-compose-plugin,docker-compose,python-docker
name: docker-ce,docker-ce-cli,containerd.io,docker-compose-plugin,python-docker
update_cache: yes
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 7 and ansible_python.version.major == 2
notify: restart_docker
......@@ -90,7 +90,7 @@
become: true
pip:
name: docker-compose
when: ansible_python.version.major == 3
#when: ansible_python.version.major == 3
- name: docker 创建目录
become: true
file:
......
......@@ -41,7 +41,7 @@
when: ansible_os_family == 'RedHat' and not testing
- name: pip
include_tasks: pip.yml
when: ansible_python.version.major == 3
#when: ansible_python.version.major == 3
- name: nvidia
include_tasks: nvidia.yml
when: nvidia_driver_version and ansible_os_family == 'Debian'
......
- name: 'use pip3'
set_fact:
pip_executable_install: pip3
when: ansible_python.version.major == 3
- name: 'use pip'
set_fact:
pip_executable_install: pip
when: ansible_python.version.major == 2
# when: ansible_python.version.major == 3
#- name: 'use pip'
# set_fact:
# pip_executable_install: pip
# when: ansible_python.version.major == 2
- name: china mirror pip
set_fact:
china_mirror_pip: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment