Commit 99a5ee35 authored by Pietsch, Martin's avatar Pietsch, Martin

replaced container creation block with execution of createcontainer.yml

parent 849e9087
- block:
- name: create directory for container
path: "{{ function_container_root }}"
state: directory
owner: root
group: wheel
mode: 0755
- name: check if base configuration for container exists
path: /etc/jail.conf
register: jcfg
- name: create base configuration for container
src: "{{ function_container_base_config }}"
dest: /etc/jail.conf
owner: root
group: wheel
mode: 0644
when: jcfg.stat.exists == False and function_container_base_config != ""
- name: enable container
name: jail
enabled: yes
- name: create and configure container
include_tasks: _jailcreation.yml
when: (_container.container | default(False)) == True
loop: "{{ function_packages }}"
loop_var: _container
- include_tasks: createcontainer.yml
when: function_container_used == True
- import_role:
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