aboutsummaryrefslogtreecommitdiff
path: root/gerboweb/deploy/setup_containers.yml
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2019-04-02 04:36:10 +0900
committerjaseg <git@jaseg.net>2019-04-02 04:36:10 +0900
commitcbb98bcf0ee0e9e123f054377ff68b513efe6bf6 (patch)
treed44deea64134600a6b385c3c4a773aadc20812cf /gerboweb/deploy/setup_containers.yml
parenta846d39bc88e0c03402b20790b04762666bc055f (diff)
downloadgerbolyze-cbb98bcf0ee0e9e123f054377ff68b513efe6bf6.tar.gz
gerbolyze-cbb98bcf0ee0e9e123f054377ff68b513efe6bf6.tar.bz2
gerbolyze-cbb98bcf0ee0e9e123f054377ff68b513efe6bf6.zip
gerboweb: Modularize deployment playbooks a bit
Diffstat (limited to 'gerboweb/deploy/setup_containers.yml')
-rw-r--r--gerboweb/deploy/setup_containers.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/gerboweb/deploy/setup_containers.yml b/gerboweb/deploy/setup_containers.yml
new file mode 100644
index 0000000..dd0a5ca
--- /dev/null
+++ b/gerboweb/deploy/setup_containers.yml
@@ -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
+