Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/ondemand selinux 263 #264

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions defaults/main/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ ood_use_existing_repo_file: false
install_ondemand_dex: false
ondemand_dex_package: ondemand-dex # behaviour as for ondemand_package

# flip this flag if you want to install the ondemand-selinux RPM
install_ondemand_selinux: false
ondemand_selinux_package: ondemand-selinux # behaviour as for ondemand_package

# needed for testing. no reason to change these in production.
disable_htcacheclean: false
nodejs_version: 20
Expand Down
6 changes: 6 additions & 0 deletions tasks/install-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,9 @@
name: "{{ 'ondemand-dex' if ondemand_dex_package == 'latest' else ondemand_dex_package }}"
state: "{{ 'latest' if ondemand_dex_package == 'latest' else 'present' }}"
when: install_ondemand_dex

- name: Install ondemand-selinux
ansible.builtin.package:
name: "{{ 'ondemand-selinux' if ondemand_selinux_package == 'latest' else ondemand_selinux_package }}"
state: "{{ 'latest' if ondemand_selinux_package == 'latest' else 'present' }}"
when: install_ondemand_selinux