This commit is contained in:
DeveloperDurp 2026-02-07 05:57:45 -06:00
parent 3b038403c1
commit 1cb7a7295b
3 changed files with 29 additions and 25 deletions

View file

@ -0,0 +1,6 @@
- name: ansible copy file from remote to local.
fetch:
src: /home/administrator/.kube/config
dest: "/drop/config-{{ lookup('env','ENVIRONMENT_NAME') }}"
flat: yes
when: ansible_hostname == hostvars[groups['master'][0]]['ansible_hostname']