Commit a201ff78 authored by Pietsch, Martin's avatar Pietsch, Martin

convert with_-loops to loop-loops; add missing name tags

parent 8ddb7e39
---
- set_fact:
- name: initialise variable that controls the reboot of the host
set_fact:
doreboot: False
- block:
......@@ -26,31 +27,35 @@
create_nullfs: True
migration_host: "{{ migrationhostip }}"
when: (not (container.key in contlist.jails) or container.value == True) and container.key != 'host'
with_dict: "{{ system_upgrade_states[migrationhost] }}"
loop: "{{ system_upgrade_states[migrationhost] | dict2items }}"
loop_control:
loop_var: container
- set_fact:
- name: set variable that controls the reboot of the host
set_fact:
doreboot: "{{ system_upgrade_states[migrationhost].host }}"
when: system_upgrade_states is defined
- block:
- set_fact:
- name: initialise variable for upgrade results
set_fact:
upgraded: {}
- include_tasks: _doupgrade.yml
- include_tasks: _doupgrade.yml
when: (container.container | default(False)) == True
with_items: "{{ (function_packages | default([])) }}"
loop: "{{ (function_packages | default([])) }}"
loop_control:
loop_var: container
- set_fact:
- name: set upgrade results to variable system_upgrade_states
set_fact:
system_upgrade_states: "{{ {inventory_hostname: upgraded} }}"
- set_fact:
- name: set variable that controls the reboot of the host
set_fact:
doreboot: "{{ system_upgrade_states[inventory_hostname].host }}"
when: 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