commit 10ef2e89284aada09108e6600e902bbb0e55c4d5 parent bd558730ee9e92de44d095e7979a84f9e986cd4c Author: pyratebeard <root@pyratebeard.net> Date: Thu, 2 May 2024 23:31:50 +0100 move libvirt play to new dir. start crafting lxc play Diffstat:
R | homelab/playbook.yml -> homelab/libvirt/playbook.yml | | | 0 | |
R | homelab/vars.yml -> homelab/libvirt/vars.yml | | | 0 | |
A | homelab/lxc/playbook.yml | | | 34 | ++++++++++++++++++++++++++++++++++ |
3 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/homelab/playbook.yml b/homelab/libvirt/playbook.yml diff --git a/homelab/vars.yml b/homelab/libvirt/vars.yml diff --git a/homelab/lxc/playbook.yml b/homelab/lxc/playbook.yml @@ -0,0 +1,34 @@ +--- +# ██ +# ░██ +# ░██ ██ ██ █████ +# ░██░░██ ██ ██░░░██ +# ░██ ░░███ ░██ ░░ +# ░██ ██░██ ░██ ██ +# ███ ██ ░░██░░█████ +# ░░░ ░░ ░░ ░░░░░ +# +# author ▓▒ pyratebeard <root@pyratebeard.net> +# code ▓▒ https://git.pyratebeard.net/playbooks/ + +- hosts: pigley + gather_facts: true + become: true + pre_tasks: + - name: "load vars" + ansible.builtin.include_vars: + file: vars.yml + tags: always + + tasks: + - name: "creation" + block: + - name: "creation | create container" + community.general.lxc_container: + name: "{{ lxc_name }}" + container_log: true + template: "{{ lxc_template }}" + state: started + template_options: "--release {{ lxc_release }}" + tags: + - create