summaryrefslogtreecommitdiff
path: root/roles/vm
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-05-25 03:12:47 +0200
committerChristian Pointner <equinox@spreadspace.org>2019-05-25 03:12:47 +0200
commitf8ab68e40dda046171de02df6a7c12514f570bf8 (patch)
treeabe825df189af419216eb66c857cb3f8f089578f /roles/vm
parentloop vs. with - the beginnings... (diff)
replace all with_items with loop
Diffstat (limited to 'roles/vm')
-rw-r--r--roles/vm/host/tasks/main.yml2
-rw-r--r--roles/vm/network/tasks/main.yml4
2 files changed, 3 insertions, 3 deletions
diff --git a/roles/vm/host/tasks/main.yml b/roles/vm/host/tasks/main.yml
index 010fdce4..562e502e 100644
--- a/roles/vm/host/tasks/main.yml
+++ b/roles/vm/host/tasks/main.yml
@@ -17,7 +17,7 @@
notify: restart haveged
- name: make sure installer directories exists
- with_items:
+ loop:
- "{{ debian_installer_path }}"
- "{{ preseed_path }}"
file:
diff --git a/roles/vm/network/tasks/main.yml b/roles/vm/network/tasks/main.yml
index 9bef36ed..cb73ef6e 100644
--- a/roles/vm/network/tasks/main.yml
+++ b/roles/vm/network/tasks/main.yml
@@ -1,7 +1,7 @@
---
- block:
- name: remove legacy systemd.link units
- with_items:
+ loop:
- 50-virtio-kernel-names.link
- 99-default.link
file:
@@ -9,7 +9,7 @@
state: absent
- name: install systemd network link units
- with_items: "{{ network.systemd_link.interfaces }}"
+ loop: "{{ network.systemd_link.interfaces }}"
loop_control:
index_var: interface_index
template: