Skip to content

Commit

Permalink
use separate tasks instead of block
Browse files Browse the repository at this point in the history
  • Loading branch information
iljarotar committed Jan 10, 2025
1 parent 6d36aed commit 9616e35
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions partition/roles/systemd-networkd/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
setup:

- name: Reboot if interfaces were not renamed successfully
block:
- name: Reboot
reboot:
reboot_timeout: 180
ignore_errors: true
- name: Wait for connection
wait_for_connection:
reboot:
reboot_timeout: 60
ignore_errors: true
when: "(systemd_networkd_nics | map(attribute='name')) is not subset(ansible_facts.interfaces)"

- name: Wait for connection after reboot
wait_for_connection:
when: "(systemd_networkd_nics | map(attribute='name')) is not subset(ansible_facts.interfaces)"

- name: Render systemd-networkd vlan netdev config
Expand Down

0 comments on commit 9616e35

Please sign in to comment.