Add inventory and group_vars for ubuntu

This commit is contained in:
c0de 2024-12-19 21:17:16 -06:00
parent e4593e3072
commit 86734b5eca
2 changed files with 41 additions and 0 deletions

35
group_vars/ubuntu.yml Normal file
View File

@ -0,0 +1,35 @@
---
# Disable unwanted services
ubuntu_disable_services:
- unattended-upgrades.service
- snapd.service
- snapd.socket
# Install these packages
ubuntu_install_packages:
- tmux
- bmon
- htop
- iotop-c
- vim
- python3-dev
- python3-pip
- build-essential
# Create these groups if they don't exist
ubuntu_groups:
- sudo
# Create these users if they don't exist
ubuntu_users:
- name: c0de
ssh_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCzsWYAbdyilcZThO2vAHA80bl2ZdCiKzKfCL0Bninf3HdUl4i6FyYH3fwyu3rxtgH7r/UoPNMnRdWrAlY5dw7srPmV46PPFiZToZota66c//eqLQTWTM/0dENwqxCjjD/a9U2xEXbb+uFHvO7erkmlI1B8SB+53NsvRWj6qLhRpTIQed6sGDhMWMgdkptC/AQzbBe/JbNuNBDoMvMERRvMGhxfIdspYIGLdyA6twZ8RaMNOrdYfw+MrpMhb+4QZdIroHDBbLI7govPhN4iUKOPvXsGaV4xf1DnZYMbEZgdFFf5+TiVEQ/Bn8Gpp0m5tE9SMNPm4NtgYPmrNbnOEUhH8PbwKm1dxo3VnYvYiLtBgOKS5uQ/LF8f73SBeWwnQS/uIVYjUhhP0mu9WnTo9oRzIrXxnCtkPBgopZS/y6nKs4HDGxeBU7y0tdMWu53Rs/SM1LY9B/ei5IjZUnFsx1CbZZAhU4cv4uQuDS9qikocm44w9S8xagjQVDgb1bV5y10= c0de@c0de-3444f9u
groups:
- sudo
- wheel
- name: ansible
ssh_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCzsWYAbdyilcZThO2vAHA80bl2ZdCiKzKfCL0Bninf3HdUl4i6FyYH3fwyu3rxtgH7r/UoPNMnRdWrAlY5dw7srPmV46PPFiZToZota66c//eqLQTWTM/0dENwqxCjjD/a9U2xEXbb+uFHvO7erkmlI1B8SB+53NsvRWj6qLhRpTIQed6sGDhMWMgdkptC/AQzbBe/JbNuNBDoMvMERRvMGhxfIdspYIGLdyA6twZ8RaMNOrdYfw+MrpMhb+4QZdIroHDBbLI7govPhN4iUKOPvXsGaV4xf1DnZYMbEZgdFFf5+TiVEQ/Bn8Gpp0m5tE9SMNPm4NtgYPmrNbnOEUhH8PbwKm1dxo3VnYvYiLtBgOKS5uQ/LF8f73SBeWwnQS/uIVYjUhhP0mu9WnTo9oRzIrXxnCtkPBgopZS/y6nKs4HDGxeBU7y0tdMWu53Rs/SM1LY9B/ei5IjZUnFsx1CbZZAhU4cv4uQuDS9qikocm44w9S8xagjQVDgb1bV5y10= c0de@c0de-3444f9u
groups:
- sudo
- wheel

6
inventories/ubuntu.yml Normal file
View File

@ -0,0 +1,6 @@
---
ubuntu:
hosts:
host.foxybox.es:
ansible_user: root