From 86734b5eca426ad67253b9c17ff999cbe47fa605 Mon Sep 17 00:00:00 2001 From: c0de Date: Thu, 19 Dec 2024 21:17:16 -0600 Subject: [PATCH] Add inventory and group_vars for ubuntu --- group_vars/ubuntu.yml | 35 +++++++++++++++++++++++++++++++++++ inventories/ubuntu.yml | 6 ++++++ 2 files changed, 41 insertions(+) create mode 100644 group_vars/ubuntu.yml create mode 100644 inventories/ubuntu.yml diff --git a/group_vars/ubuntu.yml b/group_vars/ubuntu.yml new file mode 100644 index 0000000..5378cf0 --- /dev/null +++ b/group_vars/ubuntu.yml @@ -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 diff --git a/inventories/ubuntu.yml b/inventories/ubuntu.yml new file mode 100644 index 0000000..3a20dd5 --- /dev/null +++ b/inventories/ubuntu.yml @@ -0,0 +1,6 @@ +--- + +ubuntu: + hosts: + host.foxybox.es: + ansible_user: root