feat: added tags for multiple roles used by internal.yml playbook

This commit is contained in:
NaeiKinDus 2024-07-13 00:00:00 +00:00
parent 736d90b82d
commit 3ec536f299
Signed by: WoodSmellParticle
GPG key ID: 8E52ADFF7CA8AE56
3 changed files with 45 additions and 5 deletions

View file

@ -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

View file

@ -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]