move secret handling after manifests and charts, move scripts to files/scripts, update references to scripts
This commit is contained in:
parent
8a3adf792a
commit
45c977318d
@ -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"
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user