From 0182fe51736e7610d4a63fe6767d08ffe5c5938c Mon Sep 17 00:00:00 2001 From: clyhtsuriva Date: Mon, 3 Mar 2025 21:20:59 +0100 Subject: 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 --- ansible/playbooks/bootstrap.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 ansible/playbooks/bootstrap.yml (limited to 'ansible/playbooks/bootstrap.yml') diff --git a/ansible/playbooks/bootstrap.yml b/ansible/playbooks/bootstrap.yml new file mode 100644 index 0000000..c9d75a4 --- /dev/null +++ b/ansible/playbooks/bootstrap.yml @@ -0,0 +1,8 @@ +--- +# Bootstrap playbook for post-provisioning tasks. +- name: Include Docker playbook if the host has the 'tag_docker' tag + ansible.builtin.import_playbook: docker.yml + +- name: Include K8s playbook if the host is a k3s master or worker + ansible.builtin.import_playbook: k8s.yml +... -- cgit v1.2.3