Skip to content

Commit

Permalink
Fix repo management logic for redhat variants (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyphreak authored Jan 9, 2024
1 parent 398407a commit ea8cd40
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tasks/repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
when: apt_key_module.failed
tags: skip_ansible_lint

- name: Install apt repository
- name: Manage apt repository
ansible.builtin.apt_repository:
repo: "{{ docker_deb_repo.url }}"
state: "{{ docker_repo_state }}"
Expand All @@ -54,16 +54,12 @@
- python3-pip
- python3-docker

- name: Install yum repository
- name: Manage yum repository
ansible.builtin.get_url:
url: "{{ docker_rpm_repo.url }}"
state: "{{ docker_repo_state }}"
dest: /etc/yum.repos.d/docker.repo
mode: 0644

- name: Remove yum repository
ansible.builtin.file:
dest: /etc/yum.repos.d/docker.repo
state: absent

- name: Flush handlers
ansible.builtin.meta: flush_handlers

0 comments on commit ea8cd40

Please sign in to comment.