Created
January 27, 2024 09:35
-
-
Save meysam81/1b4c20fbb59fb1f6e791f7bcebe7c604 to your computer and use it in GitHub Desktop.
Passing vars files to the controlplane configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Bootstrap Kubernetes Control plane | |
hosts: node0 | |
become: true | |
gather_facts: true | |
vars_files: | |
- "{{ playbook_dir }}/vars/etcd.yml" | |
- "{{ playbook_dir }}/vars/k8s.yml" | |
- "{{ playbook_dir }}/vars/tls.yml" | |
tasks: | |
# ... truncated ... | |
- name: Import kubeconfig role | |
ansible.builtin.include_role: | |
name: kubeconfig | |
vars: | |
is_controlplane: true | |
# ... truncated ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment