Commit efb6f1f7 authored by nanahira's avatar nanahira

no moby

parent 1a3695b1
Pipeline #2878 failed with stage
in 10 seconds
......@@ -67,7 +67,7 @@
baseurl: '{{mirror_docker}}/linux/{{ ansible_distribution|lower }}/{{ansible_distribution_major_version}}/$basearch/stable'
ip_resolve: 'IPv4'
gpgkey: '{{mirror_docker}}/linux/{{ ansible_distribution|lower }}/gpg'
when: ansible_os_family == "RedHat" and ansible_distribution_major_version|int <= 8
when: ansible_os_family == "RedHat"
- name: 安装 Docker (yum)
become: true
yum:
......@@ -80,14 +80,7 @@
dnf:
name: docker-ce,docker-ce-cli,containerd.io
update_cache: yes
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >= 8 and ansible_distribution != 'Fedora'
notify: restart_docker
- name: 安装 Docker (Fedora)
become: true
dnf:
name: moby-engine
update_cache: yes
when: ansible_distribution == 'Fedora'
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >= 8
notify: restart_docker
- name: docker user group
become: 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