From d7859458a6e8a9194023851136f55359be59979c 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. --- .../foreman_installer_devel_scenario/files/katello-devel.yaml | 2 -- roles/foreman_installer_devel_scenario/tasks/main.yml | 3 ++- 2 files changed, 2 insertions(+), 3 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..ef70333b1 100644 --- a/roles/foreman_installer_devel_scenario/tasks/main.yml +++ b/roles/foreman_installer_devel_scenario/tasks/main.yml @@ -16,10 +16,11 @@ with_items: - katello-devel.yaml -- name: 'Copy answers file' +- name: "Create devel scenario answers file if it doesn't already exist" template: src: "{{ role_path }}/templates/{{ item }}" dest: /etc/foreman-installer/scenarios.d/{{ item }} + force: no with_items: - katello-devel-answers.yaml