From 32c30a61acc0353f0934eb87a65c0b0e5404baab Mon Sep 17 00:00:00 2001 From: Ted Cook Date: Tue, 9 Jan 2024 07:58:23 -0600 Subject: [PATCH] Fix repo management logic for redhat variants --- tasks/repo.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tasks/repo.yml b/tasks/repo.yml index bfc1ba0..956d950 100644 --- a/tasks/repo.yml +++ b/tasks/repo.yml @@ -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 }}" @@ -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