45 lines
975 B
YAML
45 lines
975 B
YAML
---
|
|
- 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
|