Skip to content

Commit

Permalink
Drop Pulp < 3.39 support in pulpcore_repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Mar 22, 2024
1 parent 011de6c commit b0c6aef
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions roles/pulpcore_repositories/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,9 @@
gpgcheck: no
enabled: yes

- name: 'Enable pulpcore:el8 module'
command: dnf module enable -y pulpcore:el8
# can't use the `dnf` module for modules without a default stream
# https://github.com/ansible/ansible/issues/56504
# https://github.com/ansible/ansible/issues/64852
args:
creates: /etc/dnf/modules.d/pulpcore.module
when:
- pulpcore_repositories_version is version('3.16', '>=')
- pulpcore_repositories_version is version('3.39', '<')
- ansible_distribution_major_version == '8'

- name: 'Disable pulpcore:el8 module'
file:
path: /etc/dnf/modules.d/pulpcore.module
state: absent
when:
- pulpcore_repositories_version is version('3.39', '>=')
- ansible_distribution_major_version == '8'

0 comments on commit b0c6aef

Please sign in to comment.