gerboweb: Modularize deployment playbooks a bit
This commit is contained in:
parent
5ff592c24c
commit
9358a57bae
13 changed files with 257 additions and 196 deletions
25
setup_containers.yml
Normal file
25
setup_containers.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
- name: Install host requisites
|
||||
dnf:
|
||||
name: btrfs-progs,arch-install-scripts,systemd-container,libselinux-python
|
||||
state: latest
|
||||
|
||||
- name: Create container dir
|
||||
file:
|
||||
path: /var/cache/containers
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0775
|
||||
state: directory
|
||||
|
||||
- name: Create individual containers
|
||||
include_tasks: bootstrap_arch_container.yml
|
||||
with_items: "{{ containers }}"
|
||||
loop_control:
|
||||
loop_var: container
|
||||
|
||||
- name: Cleanup bootstrap image
|
||||
file:
|
||||
path: /tmp/arch-bootstrap.tar.xz
|
||||
state: absent
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue