Skip to content
Snippets Groups Projects

Kubeconfig localhost

Merged Kristýna Rozehnalová requested to merge kubeconfig_localhost into master
3 files
+ 17
3
Compare changes
  • Side-by-side
  • Inline
Files
3
- name: Include kubeconfig_localhost variable
include_vars:
file: ~/kubernetes-infra-example/ansible/group_vars/k8s_cluster/k8s-cluster.yml
- name: Modify admin.conf
ansible.builtin.replace:
path: "../artifacts/admin.conf"
regexp: '\b(?:\d{1,3}\.){3}\d{1,3}\b'
replace: "{{ hostvars[groups['bastion'][0]].ansible_host }}"
become: false
when: kubeconfig_localhost == true
Loading