mirror of
https://gitlab.durp.info/durfy/runbooks/ansible.git
synced 2026-05-07 08:00:29 -05:00
update
This commit is contained in:
parent
3b038403c1
commit
1cb7a7295b
3 changed files with 29 additions and 25 deletions
6
ansible/roles/k3s/post/tasks/main.yml
Normal file
6
ansible/roles/k3s/post/tasks/main.yml
Normal 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']
|
||||
Loading…
Add table
Add a link
Reference in a new issue