Update Scripts/Ansible/Playbooks/Linux/Kubernetes/Deploy RKE2 Cluster/1-provision-device.yml
This commit is contained in:
@ -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
|
hosts: all
|
||||||
become: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: Fetch Updates Prior to Software Installation
|
- name: Fetch updates
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
- name: Install nfs-common, iptables, nano, and htop
|
- name: Install packages
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- nfs-common
|
- nfs-common
|
||||||
@ -17,13 +18,14 @@
|
|||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
- name: Perform APT Dist Upgrade
|
- name: Upgrade all packages
|
||||||
apt:
|
apt:
|
||||||
upgrade: dist
|
upgrade: dist
|
||||||
|
|
||||||
- name: Autoremove APT Packages
|
- name: Autoremove unused packages
|
||||||
apt:
|
apt:
|
||||||
autoremove: yes
|
autoremove: yes
|
||||||
|
|
||||||
- name: Reboot the Device
|
- name: Reboot the VM
|
||||||
reboot:
|
reboot:
|
||||||
|
```
|
Reference in New Issue
Block a user