Commit 03db777e authored by Pietsch, Martin's avatar Pietsch, Martin

add creation of devfs rules for jails

parent deaa6460
......@@ -39,6 +39,27 @@
mode: 0644
when: container.container_options['mount.fstab'] is defined
- name: configure containers devfs
- name: set devfs rules for container
path: /etc/defaults/devfs.rules
create: yes
allow_no_value: yes
section: "devfsrules_jail_{{ container.jailname }}={{ container.container_options['devfs_ruleset'] }}"
option: "{{ _rule }}"
register: _devfs_result
loop: "{{ ['add include $devfsrules_hide_all', 'add include $devfsrules_unhide_basic', 'add include $devfsrules_unhide_login'] | union(container.container_options['devfs_rules']) }}"
loop_var: _rule
- name: restart devfs
name: devfs
state: restarted
when: _devfs_result.changed == True
when: container.container_options['devfs_ruleset'] is defined and container.container_options['devfs_rules'] is defined
- name: create "{{ }}" container
name: "{{ container.jailname }}"
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