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 974ad95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
gpgcheck: no
tags:
- packages
when:
- foreman_client_repositories_version is version('3.9', '<')
2 changes: 2 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,5 @@

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

0 comments on commit 974ad95

Please sign in to comment.