Update Scripts/Ansible/Playbooks/Linux/Kubernetes/Deploy RKE2 Cluster/1-provision-device.yml

This commit is contained in:
Nicole Rappe
2024-01-19 23:02:21 -07:00
parent 377a7e3b69
commit 5940b3c7fa

View File

@ -1,13 +1,14 @@
```jsx title="1-provision-vm.yml"
---
- name: Ubuntu Server-Based Cluster Deployment #This is specific to my homelab
- name: Ubuntu Server-Based Cluster Deployment
hosts: all
become: yes
tasks:
- name: Fetch Updates Prior to Software Installation
- name: Fetch updates
apt:
update_cache: yes
- name: Install nfs-common, iptables, nano, and htop
- name: Install packages
apt:
name:
- nfs-common
@ -17,13 +18,14 @@
state: present
update_cache: yes
- name: Perform APT Dist Upgrade
- name: Upgrade all packages
apt:
upgrade: dist
- name: Autoremove APT Packages
- name: Autoremove unused packages
apt:
autoremove: yes
- name: Reboot the Device
- name: Reboot the VM
reboot:
```