feat: added tags for multiple roles used by internal.yml playbook
This commit is contained in:
parent
736d90b82d
commit
3ec536f299
3 changed files with 45 additions and 5 deletions
|
@ -38,10 +38,12 @@
|
|||
changed_when: false
|
||||
|
||||
- name: setup server role
|
||||
include_tasks: server.yml
|
||||
ansible.builtin.include_tasks: server.yml
|
||||
tags: [helm, opentofu]
|
||||
when: k3s_cluster_role is match("server")
|
||||
- name: setup agent role
|
||||
include_tasks: agent.yml
|
||||
ansible.builtin.include_tasks: agent.yml
|
||||
tags: [helm, opentofu]
|
||||
when: k3s_cluster_role is match("agent")
|
||||
|
||||
- name: reset permissions
|
||||
|
|
|
@ -48,9 +48,14 @@
|
|||
loop: '{{ k3s_cluster_additional_helm_charts }}'
|
||||
loop_control:
|
||||
label: '{{ item.release_name }}'
|
||||
tags: [helm]
|
||||
|
||||
- name: install OpenTofu resources
|
||||
include_tasks: opentofu.yml
|
||||
ansible.builtin.include_tasks:
|
||||
file: opentofu.yml
|
||||
apply:
|
||||
tags: [opentofu]
|
||||
loop: '{{ k3s_cluster_additional_tf_resources }}'
|
||||
loop_control:
|
||||
label: '{{ item.name }}'
|
||||
tags: [opentofu]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue