This commit is contained in:
parent
8c928163d3
commit
cdf71aec07
@ -44,11 +44,14 @@
|
|||||||
command: journalctl --all --unit=k3s-init.service
|
command: journalctl --all --unit=k3s-init.service
|
||||||
changed_when: False
|
changed_when: False
|
||||||
register: __k3s_init_log
|
register: __k3s_init_log
|
||||||
|
|
||||||
- name: Save k3s-init logs
|
- name: Save k3s-init logs
|
||||||
copy:
|
copy:
|
||||||
content: "{{ __k3s_init_log.stdout }}"
|
content: "{{ __k3s_init_log.stdout }}"
|
||||||
dest: "{{ k3s_log_dir }}/k3s-init.log"
|
dest: "{{ k3s_log_dir }}/k3s-init.log"
|
||||||
|
mode: 0640
|
||||||
when: k3s_init_log_enabled | bool
|
when: k3s_init_log_enabled | bool
|
||||||
|
|
||||||
- name: Kill the temporary service used for initialization
|
- name: Kill the temporary service used for initialization
|
||||||
systemd:
|
systemd:
|
||||||
name: k3s-init
|
name: k3s-init
|
||||||
|
Loading…
Reference in New Issue
Block a user