This commit is contained in:
DeveloperDurp 2026-02-11 05:18:24 -06:00
parent 5359ea8bc6
commit 544414013a
2 changed files with 7 additions and 2 deletions

View file

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