Skip to content
Snippets Groups Projects
Commit 3c3706cd authored by r0zehnal0vak's avatar r0zehnal0vak
Browse files

kubeconfig_localhost

parent 3867bcfd
Branches
No related tags found
No related merge requests found
- name: Include kubeconfig_localhost variable
include_vars:
file: ~/kubernetes-infra-example/ansible/group_vars/k8s_cluster/k8s-cluster.yml
- name: Modify admin.conf - name: Modify admin.conf
ansible.builtin.replace: ansible.builtin.replace:
path: "../artifacts/admin.conf" path: "../artifacts/admin.conf"
regexp: '\b(?:\d{1,3}\.){3}\d{1,3}\b' regexp: '\b(?:\d{1,3}\.){3}\d{1,3}\b'
replace: "{{ hostvars[groups['bastion'][0]].ansible_host }}" replace: "{{ hostvars[groups['bastion'][0]].ansible_host }}"
become: false become: false
when: kubeconfig_localhost == true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment