blob: 58d22d8dee00e84328ffe8d2e6a12aca4c76c421 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
- name: Ensure jails directory exists
file:
path: /usr/local/jails
state: directory
owner: root
group: wheel
mode: "0755"
- name: Create ZFS datasets
loop:
- { name: "zroot/jails", mountpoint: "/usr/local/jails" }
- { name: "zroot/jails/media" }
- { name: "zroot/jails/templates" }
- {
name: "zroot/jails/templates/{{ jail_userland_14_3 }}",
userland: "{{ jail_userland_14_3 }}",
}
- {
name: "zroot/jails/templates/{{ jail_userland_15_0 }}",
userland: "{{ jail_userland_15_0 }}",
}
- { name: "zroot/jails/containers" }
loop_control:
loop_var: dataset
include_tasks: jails_dataset.yml
- name: Configure jails
block:
- name: Configure jail.conf
template:
src: etc_jail.conf.j2
dest: /etc/jail.conf
owner: root
group: wheel
mode: "0644"
- name: Configure devfs.rules
template:
src: etc_devfs.rules.j2
dest: /etc/devfs.rules
owner: root
group: wheel
mode: "0644"
- name: Configure individual jails
loop: "{{ jails }}"
loop_control:
loop_var: jail
include_tasks: jails_single.yml
|