diff --git a/files/ansible-playbooks/sot-updater.yml b/files/ansible-playbooks/sot-updater.yml index 1ff298e..2333668 100644 --- a/files/ansible-playbooks/sot-updater.yml +++ b/files/ansible-playbooks/sot-updater.yml @@ -131,7 +131,6 @@ msg: - "upgrade_cmd='{{ nb_upgrade_cmd }}' (len={{ nb_upgrade_cmd|length }})" - # --- Parse OK line & detect IP change --- - name: "NB preflight | Parse OK line" when: nb_script.stat.exists delegate_to: localhost @@ -146,7 +145,7 @@ {{ dict( nb_tokens - | select('match', '^[a-zA-Z_]+=') # only tokens with '=' + | select('match', '^[a-zA-Z_]+=') | map('split', '=', 1) | map('list') ) @@ -161,6 +160,7 @@ nb_small: "{{ nb_kv.get('small','') }}" nb_ok_line: "{{ nb_ok_line }}" + - name: "NB preflight | Detect IP change" when: nb_script.stat.exists delegate_to: localhost