aboutsummaryrefslogtreecommitdiff
path: root/gerboweb/deploy/setup_containers.yml
blob: dd0a5ca6d98c98bfd62f7b2a8e76545682be3f1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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