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 }}
|
- name: Include vars for {{ ansible_os_family }}
|
||||||
include_vars: "{{ ansible_os_family }}.yml"
|
include_vars: "{{ ansible_os_family }}.yml"
|
||||||
|
|
||||||
- name: Remove all other's containerd version packages
|
- name: Add Official docker's repo
|
||||||
package:
|
get_url:
|
||||||
name: "{{ containerd_remove_packages_name }}"
|
url: https://download.docker.com/linux/centos/docker-ce.repo
|
||||||
state: absent
|
dest: /etc/yum.repos.d/docker-ce.repo
|
||||||
update_cache: yes
|
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
|
- name: Create thin volumes for containerd
|
||||||
lvol:
|
lvol:
|
||||||
|
|
@ -93,3 +101,6 @@
|
||||||
owner: root
|
owner: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: Restart containerd
|
notify: Restart containerd
|
||||||
|
|
||||||
|
- name: Flush handlers
|
||||||
|
meta: flush_handlers
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue