diff --git a/tasks/create-user.yaml b/tasks/create-user.yaml index 2aae5f7..bc36cd0 100644 --- a/tasks/create-user.yaml +++ b/tasks/create-user.yaml @@ -124,6 +124,6 @@ when: download_config ansible.builtin.fetch: src: "{{ conf_dir }}/config" - dest: "{{ username }}-{{ cluster }}-config" + dest: "{{ output_path }}/{{ username }}-{{ cluster }}-config" flat: true tags: add_user diff --git a/tasks/main.yml b/tasks/main.yml index 7df5562..d799ef7 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -88,3 +88,4 @@ user_k8s_cert_crt_file: "{{ item.k8s_cert_crt_file | default(k8s_cert_crt_file) }}" user_k8s_cert_key_file: "{{ item.k8s_cert_key_file | default(k8s_cert_key_file) }}" download_config: "{{ item.download_config | default(false) }}" + output_path: "{{ item.output_path | default ('/tmp/outputs') }}"