create an ansible playbook to setup a homelab on ubuntu 22.04. it should: 1. setup…
- User
create an ansible playbook to setup a homelab on ubuntu 22.04. it should:
- setup key-based ssh authentification
- install docker and docker compose
- setup the following containers through docker compose: npm sonarr radarr qbittorrent and jellyfin
- harden the linux distribution
Assistant
Here is an example Ansible playbook that should accomplish the tasks you have outlined:
--- - name: Setup Homelab on Ubuntu 22.04 hosts: homelab become: yes vars: ssh_public_key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD3F6tyPEfeqz2XrGKdbtgZLjhBp0uWfYQqzjDxCJz9NQVe98EdTmjwC8ocdFDRfCQbBaY87iWLGXJw8l7vwumXdJrbOeISpwWymXR8Xh7Vt1h3TzDJB8rSOFhh/i/kVGjjDfBqpsUgJKNlGwWc9lEnb0ZJ/xmMxQ67fs/YvhRniSj6U2H90Ta5UoUrjHkZWfGq2Kz9N/qgVwN0mz0J0+VFPdXe/T0t/8xr7e1+e8GazuNzRvdW8WewOQ9tb8/5IYlfBWpUOyWLQ1+e/qgVwN0mz0J0+VFPdXe/T0t/8xr7e1+e8GazuNzRvdW8WewOQ9tb8/5IYlfBWpUOyWLQ1+e/qgVwR9jP498WewOQ9tb8/5IYlfHYc9N4mUSJfAa7fqnh+FpCj7QW+Lr1e33Kj7rV0zWn3rN96WbM/5INr/J7+e/qQlF+K1nh+FpCj7QW+Lr1e33Kj7rV0zWn3rN96WbM/5INr/J7+e/qQlF+NAxYzXh7Vt1h3TzDJB8rSOFhh/i/kVGjjDfBqpsUgJKNlGwWc9lEnb0ZJ/xmMxQ67fs/YvhRniSj6U2H90Ta5UoUrjHkZWfGq2Kz9N/qgVwN0mz0J0+VFPdXe/T0t/8xr7e1+e8GazuNzRvdW8WewOQ9tb8/5IYlfBWpUOyWLQ1+e/qgVwN0mz0J0+VFPdXe/T0t/8xr7e1+e8GazuNzRvdW8WewOQ9tb8/5IYlfBWpUOyWLQ1+e/qgVwR9jP498WewOQ9tb8/5IYlfHYc9N4mUSJfAa7fqnh+FpCj7QW+Lr1e33Kj7rV0zWn3rN96WbM/5INr/J7+e/qQlF+K1nh+FpCj7QW+Lr1e33Kj7rV0zWn3rN96WbM/5INr/J7+e/qQlF+K1nh+FpCj7QW+Lr1e33Kj7rV0zWn3rN96WbM/5INr/J7+e/qQlF+NAxYzXh7Vt1h3TzDJB8rSOFhh/i/kVGjjDfBqpsUgJKNlGwWc9lEnb0ZJ/xmMxQ67fs/YvhRniSj6
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.