Skip to content

Commit

Permalink
Allow to define if we want to update ondemand-dex to lastest or stay …
Browse files Browse the repository at this point in the history
…on a particular version (#196)
  • Loading branch information
i-mtz authored Jul 7, 2023
1 parent 38fb81f commit 150f4d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions defaults/main/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ apt_update_cache: true

# flip this flag if you want to install the ondemand-dex RPM
install_ondemand_dex: false
# This will default to latest ondemand-dex package if install_ondemand_dex
# is set to true, to control the version installed add the version of the
# package to install (ondemand-dex-2.32.0)
ondemand_dex_package: ondemand-dex

# needed for testing. no reason to change these in production.
Expand Down
4 changes: 2 additions & 2 deletions tasks/install-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@
- name: Install ondemand-dex
ansible.builtin.package:
name: "{{ ondemand_dex_package }}"
state: latest
when: install_ondemand_dex
state: "{% if ondemand_dex_package == 'ondemand-dex' %}latest{% else %}present{% endif %}"
when: install_ondemand_dex

0 comments on commit 150f4d8

Please sign in to comment.