feat(k3s): Added 2 nodes
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
@@ -88,6 +88,7 @@
|
||||
# state: present
|
||||
# delegate_to: localhost
|
||||
|
||||
|
||||
- name: Copy VM check script to node
|
||||
ansible.builtin.copy:
|
||||
src: check_proxmox_vm.sh
|
||||
@@ -95,6 +96,13 @@
|
||||
mode: '0755'
|
||||
delegate_to: "{{ vm.node }}"
|
||||
|
||||
- name: Creates PATH-entry for crontab
|
||||
ansible.builtin.cron:
|
||||
name: PATH
|
||||
env: yes
|
||||
job: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||
delegate_to: "{{ vm.node }}"
|
||||
|
||||
- name: Schedule VM check script
|
||||
ansible.builtin.cron:
|
||||
name: "Check VM {{ vm.name }}"
|
||||
|
||||
Reference in New Issue
Block a user