12 lines
241 B
YAML
12 lines
241 B
YAML
|
- name: Check if the jail {{ jail_id }} runs
|
||
|
set_fact:
|
||
|
jail_is_old_running: >-
|
||
|
{{ jail_id in running_jail_ids }}
|
||
|
|
||
|
- name: Terminating jail when running
|
||
|
command:
|
||
|
/usr/sbin/jail -r {{ jail_id }}
|
||
|
when: jail_is_old_running
|
||
|
|
||
|
|