Add repo on RedHat family
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ec0580b048
commit
505701376c
1 changed files with 16 additions and 5 deletions
|
|
@ -2,11 +2,19 @@
|
|||
- name: Include vars for {{ ansible_os_family }}
|
||||
include_vars: "{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: Remove all other's containerd version packages
|
||||
package:
|
||||
name: "{{ containerd_remove_packages_name }}"
|
||||
state: absent
|
||||
update_cache: yes
|
||||
- name: Add Official docker's repo
|
||||
get_url:
|
||||
url: https://download.docker.com/linux/centos/docker-ce.repo
|
||||
dest: /etc/yum.repos.d/docker-ce.repo
|
||||
mode: 0644
|
||||
when:
|
||||
- ansible_os_family == "RedHat"
|
||||
|
||||
#- name: Remove all other's containerd version packages
|
||||
# package:
|
||||
# name: "{{ containerd_remove_packages_name }}"
|
||||
# state: absent
|
||||
# update_cache: yes
|
||||
|
||||
- name: Create thin volumes for containerd
|
||||
lvol:
|
||||
|
|
@ -93,3 +101,6 @@
|
|||
owner: root
|
||||
mode: 0644
|
||||
notify: Restart containerd
|
||||
|
||||
- name: Flush handlers
|
||||
meta: flush_handlers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue