move secret handling after manifests and charts, move scripts to files/scripts, update references to scripts

This commit is contained in:
srwadleigh 2024-07-08 17:24:13 +00:00
parent 8a3adf792a
commit 45c977318d
5 changed files with 9 additions and 9 deletions

View File

@ -113,14 +113,6 @@
tags:
- k8s-get-kubeconf
- name: include secret block
ansible.builtin.include_tasks: "shared/secrets.yml"
when:
- k8s_node_type == "bootstrap"
- k8s_secrets is defined
tags:
- k8s-apply-secrets
- name: include manifest block
ansible.builtin.include_tasks: "shared/manifests.yml"
when:
@ -137,6 +129,14 @@
tags:
- k8s-apply-charts
- name: include secret block
ansible.builtin.include_tasks: "shared/secrets.yml"
when:
- k8s_node_type == "bootstrap"
- k8s_secrets is defined
tags:
- k8s-apply-secrets
# END Post Deployments
when:
- k8s_action == "create"

View File

@ -21,7 +21,7 @@
delegate_to: localhost
connection: local
become: false
ansible.builtin.shell: "{{ role_path }}/scripts/get-secret.sh"
ansible.builtin.shell: "{{ role_path }}/files/scripts/get-secret.sh"
args:
chdir: "{{ playbook_dir }}"
environment: