Skip to content

Commit

Permalink
Add condition for foreman-client-repo based on bats version
Browse files Browse the repository at this point in the history
  • Loading branch information
Odilhao committed Dec 7, 2023
1 parent 1ec3902 commit f2ee09e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions roles/foreman_client_repositories/tasks/release_repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
name: https://yum.theforeman.org/client/{{ foreman_client_repositories_version }}/{{ foreman_client_repositories_dists[ansible_os_family] }}{{ ansible_distribution_major_version }}/x86_64/foreman-client-release.rpm
disable_gpg_check: True
state: present
when:
- katello_repositories_version == "nightly" or foreman_client_repositories_version is version('3.9', '<')
- ansible_distribution_major_version == '8'
3 changes: 3 additions & 0 deletions roles/foreman_client_repositories/tasks/staging_repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@

- ansible.builtin.include_tasks:
file: _{{ foreman_client_repositories_staging_source }}_staging_repo.yml
when:
- katello_repositories_version == "nightly" or foreman_client_repositories_version is version('3.9', '>=')
- ansible_distribution_major_version == '8'

0 comments on commit f2ee09e

Please sign in to comment.