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
5359ea8bc6
commit
544414013a
2 changed files with 7 additions and 2 deletions
|
|
@ -59,3 +59,8 @@ ansible-k3s-dev:
|
|||
k3s_token: $dev_k3s_token
|
||||
rules:
|
||||
- if: '$SCRIPT == "k3s" && $ENVIRONMENT_NAME == "dev"'
|
||||
artifacts:
|
||||
paths:
|
||||
- config
|
||||
expire_in: 1 days
|
||||
when: always
|
||||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue