Commit 4e2b9298 authored by Pietsch, Martin's avatar Pietsch, Martin

initialise variable container with loop variable _container

parent 66dbd76b
- include_role:
name: system.freebsd
tasks_from: _jailconfig
- name: initialise variable container with (loop-)variable _container
set_fact:
container: "{{ _container }}"
- include_tasks: _jailconfig.yml
- name: install fstab for container
template:
......@@ -32,5 +34,9 @@
- import_tasks: registercontainer.yml
- name: install and configure container package
include_tasks: _pkginstall.yml
block:
- name: "{{ 'package.%s' | format(container.name) }}"
include_role:
name: "{{ 'package.%s' | format(container.name) }}"
delegate_to: "{{ inventory_hostname }}_{{ container.name | upper() }}"
- block:
- include_role:
name: system.freebsd
tasks_from: _jailconfig
- name: initialise variable container with (loop-)variable _container
set_fact:
container: "{{ _container }}"
- include_tasks: _jailconfig.yml
- block:
- name: set devfs rules for container
ini_file:
path: /etc/defaults/devfs.rules
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment