Update Scripts/Ansible/Playbooks/Linux/Kubernetes/Deploy RKE2 Cluster/1-provision-device.yml.md
This commit is contained in:
		| @@ -0,0 +1,31 @@ | ||||
| ```jsx title="1-provision-vm.yml" | ||||
| --- | ||||
| - name: Ubuntu Server-Based Cluster Deployment | ||||
|   hosts: all | ||||
|   become: yes | ||||
|   tasks: | ||||
|     - name: Fetch updates | ||||
|       apt: | ||||
|         update_cache: yes | ||||
|  | ||||
|     - name: Install packages | ||||
|       apt: | ||||
|         name: | ||||
|           - nfs-common | ||||
|           - iptables | ||||
|           - nano | ||||
|           - htop | ||||
|         state: present | ||||
|         update_cache: yes | ||||
|  | ||||
|     - name: Upgrade all packages | ||||
|       apt: | ||||
|         upgrade: dist | ||||
|  | ||||
|     - name: Autoremove unused packages | ||||
|       apt: | ||||
|         autoremove: yes | ||||
|  | ||||
|     - name: Reboot the VM | ||||
|       reboot: | ||||
| ``` | ||||
		Reference in New Issue
	
	Block a user