From 80d57664b0f84c143c91aa5fbb4183194fbdb8da Mon Sep 17 00:00:00 2001 From: William Bradford Clark Date: Fri, 11 Nov 2022 13:47:14 -0500 Subject: [PATCH] Don't overwrite katello-devel-answers.yaml This allows re-running the provisioner without overwriting the user's changes to the configuration, so that the installer in devel setups more closely matches the familiar standard behavior. --- roles/foreman_installer_devel_scenario/files/katello-devel.yaml | 2 -- roles/foreman_installer_devel_scenario/tasks/main.yml | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/foreman_installer_devel_scenario/files/katello-devel.yaml b/roles/foreman_installer_devel_scenario/files/katello-devel.yaml index d86a2b7ae..5a250b9cc 100644 --- a/roles/foreman_installer_devel_scenario/files/katello-devel.yaml +++ b/roles/foreman_installer_devel_scenario/files/katello-devel.yaml @@ -5,8 +5,6 @@ :log_name: katello-devel.log :log_level: DEBUG :no_prefix: false -# Forklift always overwrites the answers so let's not pretend we save them -:dont_save_answers: true :answer_file: /etc/foreman-installer/scenarios.d/katello-devel-answers.yaml :installer_dir: /usr/share/foreman-installer :module_dirs: /usr/share/foreman-installer/modules diff --git a/roles/foreman_installer_devel_scenario/tasks/main.yml b/roles/foreman_installer_devel_scenario/tasks/main.yml index 81de9be06..eecc4aa19 100644 --- a/roles/foreman_installer_devel_scenario/tasks/main.yml +++ b/roles/foreman_installer_devel_scenario/tasks/main.yml @@ -20,6 +20,7 @@ template: src: "{{ role_path }}/templates/{{ item }}" dest: /etc/foreman-installer/scenarios.d/{{ item }} + force: no with_items: - katello-devel-answers.yaml