projects
/
noc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add vm/guest role for configuring VMs, make it setup rngd
[noc.git]
/
ansible
/
roles
/
vm
/
guest
/
tasks
/
main.yml
1
- name: Install rngd
2
apt:
3
name: rng-tools
4
state: present
5
6
- name: Configure rngd
7
lineinfile:
8
path: /etc/default/rng-tools
9
line: '{{ item.key }}={{ item.value }}'
10
regexp: '^#?{{ item.key }}={{ item.value }}'
11
with_dict:
12
HRNGDEVICE: /dev/hwrng
13
RNGDOPTIONS: '"-s 256 -W 80%"'
14
loop_control:
15
label: "{{ item.key }}"
16
notify: restart rngd