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

This commit is contained in:
Nicole Rappe
2024-01-19 22:58:21 -07:00
parent 72bb3fe1be
commit c71936d6ef

View File

@ -0,0 +1,29 @@
---
- name: Ubuntu Server-Based Cluster Deployment #This is specific to my homelab
hosts: all
become: yes
tasks:
- name: Fetch Updates Prior to Software Installation
apt:
update_cache: yes
- name: Install nfs-common, iptables, nano, and htop
apt:
name:
- nfs-common
- iptables
- nano
- htop
state: present
update_cache: yes
- name: Perform APT Dist Upgrade
apt:
upgrade: dist
- name: Autoremove APT Packages
apt:
autoremove: yes
- name: Reboot the Device
reboot: