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 @@ ...@@ -67,7 +67,7 @@
- name: 安装 Docker (yum) - name: 安装 Docker (yum)
become: true become: true
yum: 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 update_cache: yes
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 7 and ansible_python.version.major == 2 when: ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 7 and ansible_python.version.major == 2
notify: restart_docker notify: restart_docker
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
become: true become: true
pip: pip:
name: docker-compose name: docker-compose
when: ansible_python.version.major == 3 #when: ansible_python.version.major == 3
- name: docker 创建目录 - name: docker 创建目录
become: true become: true
file: file:
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
when: ansible_os_family == 'RedHat' and not testing when: ansible_os_family == 'RedHat' and not testing
- name: pip - name: pip
include_tasks: pip.yml include_tasks: pip.yml
when: ansible_python.version.major == 3 #when: ansible_python.version.major == 3
- name: nvidia - name: nvidia
include_tasks: nvidia.yml include_tasks: nvidia.yml
when: nvidia_driver_version and ansible_os_family == 'Debian' when: nvidia_driver_version and ansible_os_family == 'Debian'
......
- name: 'use pip3' - name: 'use pip3'
set_fact: set_fact:
pip_executable_install: pip3 pip_executable_install: pip3
when: ansible_python.version.major == 3 # when: ansible_python.version.major == 3
- name: 'use pip' #- name: 'use pip'
set_fact: # set_fact:
pip_executable_install: pip # pip_executable_install: pip
when: ansible_python.version.major == 2 # when: ansible_python.version.major == 2
- name: china mirror pip - name: china mirror pip
set_fact: set_fact:
china_mirror_pip: true 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