Commit 15002c7a authored by Pietsch, Martin's avatar Pietsch, Martin

bugfix in conditions with variable system_upgrade_states

parent 4dc12997
......@@ -52,7 +52,7 @@
- name: set update result of host to return value upgraded
set_fact:
upgraded: "{{ upgraded | combine({ 'host': {'state': _upgradestate, 'creationtime': '0'}}) }}"
when: container is not defined and system_upgrade_states not defined
when: container is not defined and system_upgrade_states is not defined
- block:
- name: set update result of jail to return value upgraded
......@@ -64,5 +64,5 @@
name: "{{ container.jailname }}"
state: restart
when: upgraded[container.jailname].state == True and upgraded["host"].state == False
when: container is defined and system_upgrade_states not defined
when: container is defined and system_upgrade_states is not defined
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