diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2026-05-13 00:13:57 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2026-05-16 18:42:27 +0300 |
| commit | b5860daf11ac353049cb1654b9414a129e5cfb96 (patch) | |
| tree | 87ed89711e4f0e85ace0a97fa123199152c67302 /tasks/jails_single.yml | |
| parent | 4715a28fdcd87440400d17154bfa361d99db29cc (diff) | |
Rework
Diffstat (limited to 'tasks/jails_single.yml')
| -rw-r--r-- | tasks/jails_single.yml | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tasks/jails_single.yml b/tasks/jails_single.yml deleted file mode 100644 index 7c5dd74..0000000 --- a/tasks/jails_single.yml +++ /dev/null @@ -1,27 +0,0 @@ -- name: "Check if jail directory for {{ jail.name }} exists" - shell: zfs list -o name | grep -Fxq "zroot/jails/containers/{{ jail.name }}" - failed_when: false - changed_when: false - register: check_jail_directory - -- name: "ZFS clone snapshot to jail directory for {{ jail.name }}" - shell: zfs clone zroot/jails/templates/{{ jail.userland }}@base "zroot/jails/containers/{{ jail.name }}" - when: check_jail_directory.rc != 0 - -- name: Configure jail.conf.d/{{ jail.name }}.conf - template: - src: etc_jail.conf.d_[jailname].conf.j2 - dest: /etc/jail.conf.d/{{ jail.name }}.conf - owner: root - group: wheel - mode: "0644" -# -#- name: "Check if jail {{ jail.name }} is running" -# shell: jls -j "{{ jail.name }}" -# failed_when: false -# changed_when: false -# register: check_jail_active -# -#- name: "(Re)start jail {{ jail.name }}" -# shell: service jail restart "{{ jail.name }}" -# when: check_jail_active.rc != 0 |
