Skip to content

Commit

Permalink
docker: remove centos 7 mirror (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenruizdegauna authored Jul 15, 2024
1 parent 91a5975 commit 66751ab
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 28 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,6 @@
state: present
update_cache: yes

- name: ensure centos extras repository is deleted
ansible.builtin.file:
path: /etc/yum.repos.d/centos-extras.repo
state: absent

- name: add centos extras repo (amd64)
copy:
src: centos-extras-amd64.repo
dest: /etc/yum.repos.d/centos-extras.repo
when: ansible_architecture == "x86_64"

- name: add centos extras repo (arm64)
copy:
src: centos-extras-arm64.repo
dest: /etc/yum.repos.d/centos-extras.repo
when: ansible_architecture == "aarch64"

- name: add docker repo
shell: yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Expand All @@ -36,4 +20,4 @@
state: present
update_cache: yes

...
...
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
---

- ansible.builtin.include_tasks: install-docker-CentOS.yaml
- name: install yum-utils
yum:
name: yum-utils
state: present
update_cache: yes


- name: add docker repo
shell: yum-config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo

- name: install docker
yum:
name:
- docker-ce
- docker-ce-cli
- containerd.io
- docker-compose-plugin
state: present
update_cache: yes

...

0 comments on commit 66751ab

Please sign in to comment.