From 3d1952b1e40821182fd83f9ca54ec20419637a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Cor=C3=A9?= Date: Fri, 24 Oct 2025 12:26:33 +0200 Subject: [PATCH] Load provision-user-data.yaml in other actions - destroy, start, stop, lifecycle Use a variable `agnosticd_load_provision_user_data` to control this behavior. Set it to false for now as the default. --- ansible/include_vars.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ansible/include_vars.yml b/ansible/include_vars.yml index 5cbc080f053..061715fc249 100644 --- a/ansible/include_vars.yml +++ b/ansible/include_vars.yml @@ -42,6 +42,17 @@ include_vars: file: "{{ secret_file }}" + # The file always exists, since touched in setup_output_dir.yml + # For now set the default to false, will change to true later + - name: load provision-user-data.yaml + when: >- + ACTION | default('provision') != 'provision' + and + agnosticd_load_provision_user_data | default(false) + include_vars: + file: "{{ [ output_dir, 'provision-user-data.yaml' ] | path_join }}" + + - name: Set passthrough user data when: - agnosticd_passthrough_user_data is defined