diff --git a/tasks/main.yml b/tasks/main.yml index 17e652e..9dc47f4 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -28,8 +28,10 @@ interfaces_file: iface: "lo" option: "up" - value: - - "ip a add {{ dn42_local_v4 }}/32 dev lo" - - "ip a add {{ dn42_local_v6 }}/128 dev lo" + value: "{{ item }}" state: present + with_items: + - "ip a add {{ dn42_local_v4 }}/32 dev lo" + - "ip a add {{ dn42_local_v6 }}/128 dev lo" notify: restart networking +