Commit 66735d47 authored by nanahira's avatar nanahira

docker compose plugin

parent d4489163
Pipeline #14119 failed with stage
in 10 seconds
......@@ -36,7 +36,7 @@
- name: 安装 Docker (apt)
become: true
apt:
name: docker-ce
name: docker-ce,docker-compose-plugin
state: latest
update_cache: yes
when: ansible_os_family == 'Debian'
......@@ -67,14 +67,14 @@
- name: 安装 Docker (yum)
become: true
yum:
name: docker-ce,docker-ce-cli,containerd.io
name: docker-ce,docker-ce-cli,containerd.io,docker-compose-plugin
update_cache: yes
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 7 and ansible_python.version.major == 2
notify: restart_docker
- name: 安装 Docker (dnf)
become: true
dnf:
name: docker-ce,docker-ce-cli,containerd.io
name: docker-ce,docker-ce-cli,containerd.io,docker-compose-plugin
update_cache: yes
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >= 8
notify: restart_docker
......@@ -97,16 +97,6 @@
name: docker-compose
executable: pip3
when: ansible_python.version.major == 2
- name: docker-compose v2 Creates directory
file:
path: '{{ansible_user_dir}}/.docker/cli-plugins'
state: directory
recurse: true
- name: docker-compose v2
get_url:
url: 'https://cdn02.moecube.com:444/init/docker-compose-linux-{{ansible_architecture}}'
dest: '{{ansible_user_dir}}/.docker/cli-plugins/docker-compose'
mode: '0755'
- name: docker 创建目录
become: true
file:
......
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