From 9358a57baeeeaaf6132953f033f71469c0154604 Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 2 Apr 2019 04:36:10 +0900 Subject: gerboweb: Modularize deployment playbooks a bit --- setup_containers.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 setup_containers.yml (limited to 'setup_containers.yml') diff --git a/setup_containers.yml b/setup_containers.yml new file mode 100644 index 0000000..dd0a5ca --- /dev/null +++ b/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 + -- cgit