whitespaces fixed
This commit is contained in:
parent
3beb52ad22
commit
cfe7735991
38
README.adoc
38
README.adoc
|
@ -36,26 +36,26 @@ Example Playbook
|
|||
state: directory
|
||||
- name: devices.facts
|
||||
copy:
|
||||
content: |
|
||||
#!/usr/bin/env sh
|
||||
content: |
|
||||
#!/usr/bin/env sh
|
||||
|
||||
check() {
|
||||
v="$1"
|
||||
shift
|
||||
if "$@" >/dev/null
|
||||
then
|
||||
echo -n "\"$v\": true, "
|
||||
else
|
||||
echo -n "\"$v\": false, "
|
||||
fi
|
||||
}
|
||||
|
||||
echo -n '{'
|
||||
check random dd count=1 of=/dev/null status=none if=/dev/random
|
||||
check urandom dd count=1 of=/dev/null status=none if=/dev/urandom
|
||||
check hwrng dd count=1 of=/dev/null status=none if=/dev/hwrng
|
||||
check hwclock hwclock --test 2>/dev/null
|
||||
echo '"checked": true}'
|
||||
check() {
|
||||
v="$1"
|
||||
shift
|
||||
if "$@" >/dev/null
|
||||
then
|
||||
echo -n "\"$v\": true, "
|
||||
else
|
||||
echo -n "\"$v\": false, "
|
||||
fi
|
||||
}
|
||||
|
||||
echo -n '{'
|
||||
check random dd count=1 of=/dev/null status=none if=/dev/random
|
||||
check urandom dd count=1 of=/dev/null status=none if=/dev/urandom
|
||||
check hwrng dd count=1 of=/dev/null status=none if=/dev/hwrng
|
||||
check hwclock hwclock --test 2>/dev/null
|
||||
echo '"checked": true}'
|
||||
dest: /etc/ansible/facts.d/devices.fact
|
||||
mode: 0755
|
||||
owner: root
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# vim: set et sw=2 ts=2 sts=2:
|
||||
galaxy_info:
|
||||
author: Denis Knauf
|
||||
description: System-template with stable, usable and needable configs
|
||||
|
@ -10,7 +11,7 @@ galaxy_info:
|
|||
versions: [7]
|
||||
- name: Debian
|
||||
versions: [9,10,11]
|
||||
- name: Ubuntu
|
||||
version: [18.04,20.04]
|
||||
- name: Ubuntu
|
||||
version: [18.04,20.04]
|
||||
galaxy_tags: []
|
||||
dependencies: []
|
||||
|
|
Loading…
Reference in a new issue