diff options
author | clyhtsuriva <aimeric@adjutor.xyz> | 2025-03-03 21:20:59 +0100 |
---|---|---|
committer | clyhtsuriva <aimeric@adjutor.xyz> | 2025-03-03 21:20:59 +0100 |
commit | 0182fe51736e7610d4a63fe6767d08ffe5c5938c (patch) | |
tree | 0025603ddfb75ae556d1f949be4c7882ea972ee9 /ansible/roles/k8s/tasks/main.yml | |
parent | f8f9666a8e630d6d64a883bca25ccc4ba98d73e4 (diff) |
ansible: add dynamic inventory & playbooks to install k3s hosts
bootstrap.yml will now be used to install any configuration on new
provisionned servers, based on tags given by the dynamic inventory
Diffstat (limited to 'ansible/roles/k8s/tasks/main.yml')
-rw-r--r-- | ansible/roles/k8s/tasks/main.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ansible/roles/k8s/tasks/main.yml b/ansible/roles/k8s/tasks/main.yml index c784c7c..fb58c1b 100644 --- a/ansible/roles/k8s/tasks/main.yml +++ b/ansible/roles/k8s/tasks/main.yml @@ -1,4 +1,12 @@ --- - name: Include UFW tasks ansible.builtin.include_tasks: ufw.yml + +- name: Install k3s on master nodes + ansible.builtin.include_tasks: install_k3s_master.yml + when: inventory_hostname in groups['tag_k3s_master'] + +- name: Install k3s on worker nodes + ansible.builtin.include_tasks: install_k3s_worker.yml + when: inventory_hostname in groups['tag_k3s_worker'] ... |