Update main.yml

This commit is contained in:
qiaofeng1227 2022-08-05 10:15:13 +08:00 committed by GitHub
parent 56e98547b3
commit 2a5f01bbe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@
- name: Install Docker on {{ansible_distribution}}
shell: |
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
when: ansible_distribution != 'Amazon'
when: ansible_distribution != 'Amazon' and ansible_distribution != "OracleLinux"
- block:
- name: Add Docker repository and replace $releasever
@ -93,7 +93,7 @@
name: [device-mapper-persistent-data,lvm2,docker-ce,docker-ce-cli,containerd.io,docker-compose-plugin,docker-scan-plugin,docker-ce-rootless-extras]
update_cache: yes
state: latest
when: ansible_distribution == 'Amazon'
when: ansible_distribution == 'Amazon' or ansible_distribution == "OracleLinux"
- name: Add permanently alias for docker compose
shell: |