summaryrefslogtreecommitdiff
path: root/roles/vm/guest
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-05-25 03:56:10 +0200
committerChristian Pointner <equinox@spreadspace.org>2019-05-25 03:56:10 +0200
commita5dc25ddf79c490b3c4118923d325b4af7bb65dc (patch)
tree7223afa81be890472bf442dbe4a07fbe7c7b5e30 /roles/vm/guest
parentfix cloud-install (diff)
replace most with_dicts
Diffstat (limited to 'roles/vm/guest')
-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]