Skip to content

Commit

Permalink
Fix repo management logic for redhat variants (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyphreak authored Jan 9, 2024
1 parent ca14139 commit c1400a3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tasks/repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,15 @@
- 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
when: docker_repo_state != 'absent'

- name: Remove yum repository
ansible.builtin.file:
dest: /etc/yum.repos.d/docker.repo
state: "{{ docker_repo_state }}"
mode: 0644

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

0 comments on commit c1400a3

Please sign in to comment.