1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- - name: Prepare for the logging exercise
- hosts: workstation.lab.example.com
- gather_subset: min
- become: no
- vars:
- ge_nsp: logging-central
- pre_tasks:
- - name: Make sure kubeconfig is there on utility
- delegate_to: utility.lab.example.com
- file:
- path: /home/lab/{{ item }}/auth/kubeconfig
- state: file
- loop: "{{ clusters }}"
- - name: Create a temp dir
- file:
- path: tmp
- state: directory
- - name: Copy over the kubeconfig
- delegate_to: utility.lab.example.com
- fetch:
- src: /home/lab/{{ item }}/auth/kubeconfig
- dest: tmp/kubeconfig-{{ item }}
- flat: yes
- loop: "{{ clusters }}"
- roles:
- - role: deploy-logging
- ...
|