Skip to content
Snippets Groups Projects
Commit 0b17a15e authored by Ing. Klára Moravcová's avatar Ing. Klára Moravcová
Browse files

Fix modify task.

parent c4d7fc1d
No related branches found
No related tags found
No related merge requests found
- name: Include kubeconfig_localhost variable - name: Include kubeconfig_localhost variable
include_vars: include_vars:
file: ~/kubernetes-infra-example/ansible/group_vars/k8s_cluster/k8s-cluster.yml file: "{{ playbook_dir }}/../artifacts/admin.conf"
- name: Modify admin.conf - name: Modify admin.conf
ansible.builtin.replace: ansible.builtin.replace:
......
...@@ -25,4 +25,5 @@ external_cloud_provider: openstack ...@@ -25,4 +25,5 @@ external_cloud_provider: openstack
#kube_apiserver_access_address: {{ hostvars[groups['bastion'][0]].ansible_host }}" #kube_apiserver_access_address: {{ hostvars[groups['bastion'][0]].ansible_host }}"
install_nginx_task: false install_nginx_task: false
install_monitoring_task: false install_monitoring_task: false
\ No newline at end of file kubeconfig_localhost: true
\ No newline at end of file
...@@ -4,6 +4,4 @@ kube_version: v1.27.5 ...@@ -4,6 +4,4 @@ kube_version: v1.27.5
## Supplementary addresses that can be added in kubernetes ssl keys. ## Supplementary addresses that can be added in kubernetes ssl keys.
## That can be useful for example to setup a keepalived virtual IP ## That can be useful for example to setup a keepalived virtual IP
supplementary_addresses_in_ssl_keys: ["{{ hostvars[groups['bastion'][0]].ansible_host }}"] supplementary_addresses_in_ssl_keys: ["{{ hostvars[groups['bastion'][0]].ansible_host }}"]
\ No newline at end of file
kubeconfig_localhost: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment