First commit

This commit is contained in:
Fern Garden 2025-05-07 22:12:32 +08:00
commit dc708aa3dd
11 changed files with 340 additions and 0 deletions

45
provision-guest.yml Normal file
View file

@ -0,0 +1,45 @@
---
- hosts: all:!template-lxc
become: true
- name: Provision a Debian installation
hosts: all
tasks:
- import_tasks: ./tasks/provisioning/distro/debian.yml
- name: Provision a VM
hosts: [ vm ]
tasks:
- import_tasks: ./tasks/provisioning/guest/vm.yml
- name: Provision an LXC Container
hosts: [ lxc ]
tasks:
- import_tasks: ./tasks/provisioning/guest/lxc.yml
- name: Install Docker
hosts: [ docker ]
tasks:
- import_tasks: ./tasks/provisioning/extras/docker.yml
- name: Add NFS Mount
hosts: [ nfs-client ]
tasks:
- import_tasks: ./tasks/provisioning/nfs/client.yml
- name: Install an NFS Server
hosts: [ nfs-server ]
tasks:
- import_tasks: ./tasks/provisioning/nfs/server.yml
- name: Secure SSH
hosts: all
vars:
sshd_config_file: /etc/ssh/sshd_config
tasks:
- import_tasks: ./tasks/provisioning/post-install/ssh.yml
handlers:
- name: restart sshd
service:
name: sshd
state: restarted