summaryrefslogtreecommitdiff
path: root/roles/vm/guest/tasks/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-06-01 17:52:28 +0200
committerChristian Pointner <equinox@spreadspace.org>2019-06-01 17:52:28 +0200
commit22d4ec550391e5e013e46347a908179b0c769ff3 (patch)
treefdb33ea899b753295e29f433d35cf77f8eee6464 /roles/vm/guest/tasks/main.yml
parentfix cloud-install role (diff)
parentwith_dict -> loop (diff)
Merge branch 'no-more-with'
Diffstat (limited to 'roles/vm/guest/tasks/main.yml')
-rw-r--r--roles/vm/guest/tasks/main.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/roles/vm/guest/tasks/main.yml b/roles/vm/guest/tasks/main.yml
index 4830d051..68c36be3 100644
--- a/roles/vm/guest/tasks/main.yml
+++ b/roles/vm/guest/tasks/main.yml
@@ -4,23 +4,23 @@
state: present
- name: Configure rngd [1/2]
+ loop: '{{ rngd_config | dict2items }}'
+ loop_control:
+ label: "{{ item.key }}"
lineinfile:
path: /etc/default/rng-tools
line: '{{ item.key }}={{ item.value }}'
regexp: '^#?{{ item.key }}='
- with_dict: '{{ rngd_config }}'
- loop_control:
- label: "{{ item.key }}"
notify: restart rngd
- name: Configure rngd [2/2]
+ loop: '{{ rngd_config | dict2items }}'
+ loop_control:
+ label: "{{ item.key }}"
lineinfile:
path: /etc/default/rng-tools
regexp: '^{{ item.key }}=(?!{{ item.value }})'
state: absent
- with_dict: '{{ rngd_config }}'
- loop_control:
- label: "{{ item.key }}"
notify: restart rngd
- name: Provide a root shell on the VM console [1/2]