mirror of
https://gitlab.durp.info/durfy/runbooks/ansible.git
synced 2026-05-07 08:00:29 -05:00
7 lines
255 B
YAML
7 lines
255 B
YAML
|
|
- 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']
|